Skip to content

Commit

Permalink
Revert "Don't assert when getting World frame info"
Browse files Browse the repository at this point in the history
This reverts commit 37d09ae.

Signed-off-by: Steven Peters <[email protected]>
  • Loading branch information
scpeters committed Jul 15, 2021
1 parent 37d09ae commit 5261eee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dartsim/src/KinematicsFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ FrameData3d KinematicsFeatures::FrameDataRelativeToWorld(
{
FrameData3d data;

// The feature system should never send us the world ID.
if (_id.IsWorld())
{
ignerr << "Given a FrameID belonging to the world. This should not be "
<< "possible! Please report this bug!\n";
assert(false);
return data;
}

Expand Down

0 comments on commit 5261eee

Please sign in to comment.