Typedef robot_interaction::ProcessFeedbackFn

Typedef Documentation

typedef std::function<bool(moveit::core::RobotState &state, const visualization_msgs::msg::InteractiveMarkerFeedback::ConstSharedPtr &feedback)> robot_interaction::ProcessFeedbackFn

Type of function for processing marker feedback. This callback function handles feedback for an Interaction’s marker. Callback should update the robot state that was passed in according to the new position of the marker.

Param state:

the current state of the robot

Param marker:

the function should fill this in with an InteractiveMarker that will be used to control the interaction.

Return:

false if the state was not successfully updated or the new state is somehow invalid or erronious (e.g. in collision). true if everything worked well.