38 #ifndef MOVEIT_ROBOT_INTERACTION_LOCKED_ROBOT_STATE_ 39 #define MOVEIT_ROBOT_INTERACTION_LOCKED_ROBOT_STATE_ 43 #include <boost/function.hpp> 44 #include <boost/thread.hpp> 76 robot_state::RobotStateConstPtr
getState()
const;
79 void setState(
const robot_state::RobotState& state);
90 void modifyState(
const ModifyStateFunction& modify);
robot_state::RobotStateConstPtr getState() const
get read-only access to the state.
void setState(const robot_state::RobotState &state)
Set the state to the new value.
LockedRobotState(const robot_state::RobotState &state)
virtual void robotStateChanged()
void modifyState(const ModifyStateFunction &modify)
robot_state::RobotStatePtr state_
virtual ~LockedRobotState()
Maintain a RobotState in a multithreaded environment.
boost::function< void(robot_state::RobotState *)> ModifyStateFunction
MOVEIT_CLASS_FORWARD(InteractionHandler)