We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3175cb5 commit 0341a99Copy full SHA for 0341a99
src/prpy/util.py
@@ -723,6 +723,9 @@ def IsAtTrajectoryStart(robot, trajectory):
723
if needs_base and needs_joints:
724
raise ValueError('Trajectories with affine and joint DOFs are not supported')
725
726
+ if trajectory.GetEnv() != robot.GetEnv():
727
+ raise ValueError('The environment attached to the trajectory does not match the environment attached to the robot')
728
+
729
if needs_base:
730
doft = openravepy.DOFAffine.X | openravepy.DOFAffine.Y | openravepy.DOFAffine.RotationAxis
731
current_pose = openravepy.RaveGetAffineDOFValuesFromTransform(robot.GetTransform(), doft)
0 commit comments