Skip to content

Commit 16ad139

Browse files
committed
Initialize robot pose to "ready" pose
1 parent 84ef858 commit 16ad139

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/interactivity/src/interactive_robot.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ InteractiveRobot::InteractiveRobot(const std::string& robot_description, const s
8080
ROS_ERROR("Could not get RobotState from Model");
8181
throw RobotLoadException();
8282
}
83-
robot_state_->setToDefaultValues();
8483

8584
// Prepare to move the "panda_arm" group
8685
group_ = robot_state_->getJointModelGroup("panda_arm");
86+
// Initialize pose to "ready"
87+
robot_state_->setToDefaultValues(group_, "ready");
88+
8789
std::string end_link = group_->getLinkModelNames().back();
8890
desired_group_end_link_pose_ = robot_state_->getGlobalLinkTransform(end_link);
8991

0 commit comments

Comments
 (0)