When a user moves an interactive marker in RViz, the node receives feedback messages containing the new pose. The node then uses this information to update the robot's target position, enabling teleoperation.
The VIEW_FACING orientation mode makes the control face the user, and MOVE_ROTATE_3D interaction mode enables 6-DOF manipulation.
If the interactive marker server is not running or initialized, the marker will not respond to user input because there is no backend to process the interaction.
void processFeedback(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) {
current_pose = feedback->pose;
}
If the user drags the marker 1 meter forward along the x-axis from the origin, what will be the value of current_pose.position.x?The feedback message contains the updated pose after the user moves the marker. Dragging it 1 meter forward along x sets current_pose.position.x to 1.0.
Interactive markers act as handles in RViz that users can move or rotate. These movements are captured and converted into commands that control the robot, enabling intuitive teleoperation.
