Complete the code to initialize an interactive marker server.
server = interactive_markers.InteractiveMarkerServer([1])The InteractiveMarkerServer requires a name string to identify the server instance.
Complete the code to create a 6-DOF interactive marker control.
control = InteractiveMarkerControl() control.name = "move_6dof" control.interaction_mode = InteractiveMarkerControl.[1]
MOVE_ROTATE_3D mode allows 6 degrees of freedom control for teleoperation.
Fix the error in the code to insert the interactive marker into the server.
server.[1](int_marker)The correct method to add an interactive marker to the server is 'insert'.
Fill both blanks to set the orientation mode and update the server.
control.orientation_mode = InteractiveMarkerControl.[1] server.[2]()
Orientation mode VIEW_FACING makes the control face the user. applyChanges() updates the server.
Fill all three blanks to create a pose, assign it to the marker, and insert it.
pose = geometry_msgs.Pose() pose.position.x = [1] pose.orientation.w = [2] int_marker.pose = pose server.[3](int_marker)
Position x is set to 0.5, orientation w to 1.0 for no rotation, and insert() adds the marker to the server.
