Skip to content

Commit a9d9e02

Browse files
sjahrAbishalini
andauthored
Update moveit_cpp_tutorial because of changes from moveit2#1542 (#515)
Co-authored-by: Abishalini Sivaraman <[email protected]>
1 parent e576313 commit a9d9e02

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/examples/moveit_cpp/src/moveit_cpp_tutorial.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int main(int argc, char** argv)
106106
visual_tools.publishAxisLabeled(target_pose1.pose, "target_pose");
107107
visual_tools.publishText(text_pose, "setStartStateToCurrentState", rvt::WHITE, rvt::XLARGE);
108108
// Visualize the trajectory in Rviz
109-
visual_tools.publishTrajectoryLine(plan_solution1.trajectory, joint_model_group_ptr);
109+
visual_tools.publishTrajectoryLine(plan_solution1.trajectory_, joint_model_group_ptr);
110110
visual_tools.trigger();
111111

112112
/* Uncomment if you want to execute the plan */
@@ -145,12 +145,12 @@ int main(int argc, char** argv)
145145
if (plan_solution2)
146146
{
147147
moveit::core::RobotState robot_state(robot_model_ptr);
148-
moveit::core::robotStateMsgToRobotState(plan_solution2.start_state, robot_state);
148+
moveit::core::robotStateMsgToRobotState(plan_solution2.start_state_, robot_state);
149149

150150
visual_tools.publishAxisLabeled(robot_state.getGlobalLinkTransform("panda_link8"), "start_pose");
151151
visual_tools.publishAxisLabeled(target_pose1.pose, "target_pose");
152152
visual_tools.publishText(text_pose, "moveit::core::RobotState_Start_State", rvt::WHITE, rvt::XLARGE);
153-
visual_tools.publishTrajectoryLine(plan_solution2.trajectory, joint_model_group_ptr);
153+
visual_tools.publishTrajectoryLine(plan_solution2.trajectory_, joint_model_group_ptr);
154154
visual_tools.trigger();
155155

156156
/* Uncomment if you want to execute the plan */
@@ -189,12 +189,12 @@ int main(int argc, char** argv)
189189
if (plan_solution3)
190190
{
191191
moveit::core::RobotState robot_state(robot_model_ptr);
192-
moveit::core::robotStateMsgToRobotState(plan_solution3.start_state, robot_state);
192+
moveit::core::robotStateMsgToRobotState(plan_solution3.start_state_, robot_state);
193193

194194
visual_tools.publishAxisLabeled(robot_state.getGlobalLinkTransform("panda_link8"), "start_pose");
195195
visual_tools.publishAxisLabeled(target_pose2, "target_pose");
196196
visual_tools.publishText(text_pose, "moveit::core::RobotState_Goal_Pose", rvt::WHITE, rvt::XLARGE);
197-
visual_tools.publishTrajectoryLine(plan_solution3.trajectory, joint_model_group_ptr);
197+
visual_tools.publishTrajectoryLine(plan_solution3.trajectory_, joint_model_group_ptr);
198198
visual_tools.trigger();
199199

200200
/* Uncomment if you want to execute the plan */
@@ -231,12 +231,12 @@ int main(int argc, char** argv)
231231
if (plan_solution4)
232232
{
233233
moveit::core::RobotState robot_state(robot_model_ptr);
234-
moveit::core::robotStateMsgToRobotState(plan_solution4.start_state, robot_state);
234+
moveit::core::robotStateMsgToRobotState(plan_solution4.start_state_, robot_state);
235235

236236
visual_tools.publishAxisLabeled(robot_state.getGlobalLinkTransform("panda_link8"), "start_pose");
237237
visual_tools.publishAxisLabeled(robot_start_state->getGlobalLinkTransform("panda_link8"), "target_pose");
238238
visual_tools.publishText(text_pose, "Goal_Pose_From_Named_State", rvt::WHITE, rvt::XLARGE);
239-
visual_tools.publishTrajectoryLine(plan_solution4.trajectory, joint_model_group_ptr);
239+
visual_tools.publishTrajectoryLine(plan_solution4.trajectory_, joint_model_group_ptr);
240240
visual_tools.trigger();
241241

242242
/* Uncomment if you want to execute the plan */
@@ -289,7 +289,7 @@ int main(int argc, char** argv)
289289
if (plan_solution5)
290290
{
291291
visual_tools.publishText(text_pose, "Planning_Around_Collision_Object", rvt::WHITE, rvt::XLARGE);
292-
visual_tools.publishTrajectoryLine(plan_solution5.trajectory, joint_model_group_ptr);
292+
visual_tools.publishTrajectoryLine(plan_solution5.trajectory_, joint_model_group_ptr);
293293
visual_tools.trigger();
294294

295295
/* Uncomment if you want to execute the plan */

0 commit comments

Comments
 (0)