moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Maintain a RobotState in a multithreaded environment. More...
#include <locked_robot_state.h>
Public Types | |
typedef std::function< void(moveit::core::RobotState *)> | ModifyStateFunction |
Public Member Functions | |
LockedRobotState (const moveit::core::RobotState &state) | |
LockedRobotState (const moveit::core::RobotModelPtr &model) | |
virtual | ~LockedRobotState () |
moveit::core::RobotStateConstPtr | getState () const |
get read-only access to the state. More... | |
void | setState (const moveit::core::RobotState &state) |
Set the state to the new value. More... | |
void | modifyState (const ModifyStateFunction &modify) |
Protected Member Functions | |
virtual void | robotStateChanged () |
Protected Attributes | |
std::mutex | state_lock_ |
Maintain a RobotState in a multithreaded environment.
Definition at line 61 of file locked_robot_state.h.
typedef std::function<void(moveit::core::RobotState*)> robot_interaction::LockedRobotState::ModifyStateFunction |
Definition at line 82 of file locked_robot_state.h.
robot_interaction::LockedRobotState::LockedRobotState | ( | const moveit::core::RobotState & | state | ) |
Definition at line 41 of file locked_robot_state.cpp.
robot_interaction::LockedRobotState::LockedRobotState | ( | const moveit::core::RobotModelPtr & | model | ) |
Definition at line 47 of file locked_robot_state.cpp.
|
virtualdefault |
moveit::core::RobotStateConstPtr robot_interaction::LockedRobotState::getState | ( | ) | const |
get read-only access to the state.
Definition at line 56 of file locked_robot_state.cpp.
void robot_interaction::LockedRobotState::modifyState | ( | const ModifyStateFunction & | modify | ) |
|
protectedvirtual |
Reimplemented in Super1.
Definition at line 95 of file locked_robot_state.cpp.
void robot_interaction::LockedRobotState::setState | ( | const moveit::core::RobotState & | state | ) |
Set the state to the new value.
Definition at line 62 of file locked_robot_state.cpp.
|
mutableprotected |
Definition at line 103 of file locked_robot_state.h.