Skip to content
Snippets Groups Projects
Commit 2badb002 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

fix more assertions

parent 1695e57f
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ namespace VirtualRobot
// The second node needs to store a reference to the first node.
if (secondData)
{
VR_ASSERT_MESSAGE(not secondData->first, "Second must not be initialized yet.");
VR_ASSERT_MESSAGE(not secondData->firstNode, "Second must not be initialized yet.");
RobotNodeHemisphere* firstNode = dynamic_cast<RobotNodeHemisphere*>(parent.get());
RobotNodeHemisphere* secondNode = this;
......@@ -171,7 +171,7 @@ namespace VirtualRobot
}
else if (secondData)
{
VR_ASSERT_MESSAGE(secondData->first, "First node must be known to second node.");
VR_ASSERT_MESSAGE(secondData->firstNode, "First node must be known to second node.");
hemisphere::CachedMaths& maths = secondData->maths();
Eigen::Vector2f actuators(secondData->firstNode->getJointValue(), this->getJointValue());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment