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 4c9af43 commit 791a751Copy full SHA for 791a751
src/prpy/util.py
@@ -717,8 +717,9 @@ def IsAtTrajectoryStart(robot, trajectory):
717
trajectory.GetWaypoint(0), robot, dof_indices)
718
719
# Get current configuration of robot for used indices.
720
- robot_values = robot.GetDOFValues(dof_indices)
721
- dof_resolutions = robot.GetDOFResolutions(dof_indices)
+ with robot.GetEnv():
+ robot_values = robot.GetDOFValues(dof_indices)
722
+ dof_resolutions = robot.GetDOFResolutions(dof_indices)
723
724
# Check deviation in each DOF, using OpenRAVE's SubtractValue function.
725
dof_infos = zip(dof_indices, traj_values, robot_values, dof_resolutions)
0 commit comments