Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
robot_interaction::LockedRobotState Class Reference

Maintain a RobotState in a multithreaded environment. More...

#include <locked_robot_state.h>

Inheritance diagram for robot_interaction::LockedRobotState:
Inheritance graph
[legend]

Public Types

typedef boost::function< void(moveit::core::RobotState *)> ModifyStateFunction
 

Public Member Functions

moveit::core::RobotStateConstPtr getState () const
 get read-only access to the state. More...
 
 LockedRobotState (const moveit::core::RobotModelPtr &model)
 
 LockedRobotState (const moveit::core::RobotState &state)
 
void modifyState (const ModifyStateFunction &modify)
 
void setState (const moveit::core::RobotState &state)
 Set the state to the new value. More...
 
virtual ~LockedRobotState ()
 

Protected Member Functions

virtual void robotStateChanged ()
 

Protected Attributes

boost::mutex state_lock_
 

Private Attributes

moveit::core::RobotStatePtr state_
 

Detailed Description

Maintain a RobotState in a multithreaded environment.

Definition at line 93 of file locked_robot_state.h.

Member Typedef Documentation

◆ ModifyStateFunction

Definition at line 114 of file locked_robot_state.h.

Constructor & Destructor Documentation

◆ LockedRobotState() [1/2]

robot_interaction::LockedRobotState::LockedRobotState ( const moveit::core::RobotState state)

Definition at line 41 of file locked_robot_state.cpp.

◆ LockedRobotState() [2/2]

robot_interaction::LockedRobotState::LockedRobotState ( const moveit::core::RobotModelPtr &  model)

Definition at line 47 of file locked_robot_state.cpp.

◆ ~LockedRobotState()

robot_interaction::LockedRobotState::~LockedRobotState ( )
virtualdefault

Member Function Documentation

◆ getState()

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.

◆ modifyState()

void robot_interaction::LockedRobotState::modifyState ( const ModifyStateFunction modify)

Definition at line 79 of file locked_robot_state.cpp.

◆ robotStateChanged()

void robot_interaction::LockedRobotState::robotStateChanged ( )
protectedvirtual

Reimplemented in Super1.

Definition at line 95 of file locked_robot_state.cpp.

◆ setState()

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.

Member Data Documentation

◆ state_

moveit::core::RobotStatePtr robot_interaction::LockedRobotState::state_
private

Definition at line 141 of file locked_robot_state.h.

◆ state_lock_

boost::mutex robot_interaction::LockedRobotState::state_lock_
mutableprotected

Definition at line 135 of file locked_robot_state.h.


The documentation for this class was generated from the following files:


robot_interaction
Author(s): Ioan Sucan
autogenerated on Sat Mar 15 2025 02:26:54