Python script to move robot to predefined pose

Hi All
I am working on the final project… And Im up to the point where we have been asked to move the robot to a predefined pose…

Now does that mean:
knowing the joint values of the predefined poses and setting the joints to this configuration?
by doing something like this

group_variable_values[5] = -1.5
group.set_joint_value_target(group_variable_values)

Or is there a way to just ask the robot to get the joints to previously defined named configuration?
like “start” or “left” etc?
Which i don’t think ive seen in the cource

thanks

Hello @darthShana ,

Both options are correct. You can see how to do the 2nd one here: [ROS Q&A] 111 - How to plan for a MoveIt named pose in Python. MoveIt ROS tutorial. - YouTube

1 Like