Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
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]

List of all members.

Public Types

typedef boost::function< void(robot_state::RobotState *) ModifyStateFunction )

Public Member Functions

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

Protected Member Functions

virtual void robotStateChanged ()

Protected Attributes

boost::mutex state_lock_

Private Attributes

robot_state::RobotStatePtr state_

Detailed Description

Maintain a RobotState in a multithreaded environment.

Definition at line 59 of file locked_robot_state.h.


Member Typedef Documentation

typedef boost::function<void (robot_state::RobotState*) robot_interaction::LockedRobotState::ModifyStateFunction)

Definition at line 80 of file locked_robot_state.h.


Constructor & Destructor Documentation

robot_interaction::LockedRobotState::LockedRobotState ( const robot_state::RobotState &  state)

Definition at line 41 of file locked_robot_state.cpp.

robot_interaction::LockedRobotState::LockedRobotState ( const robot_model::RobotModelPtr &  model)

Definition at line 48 of file locked_robot_state.cpp.

Definition at line 56 of file locked_robot_state.cpp.


Member Function Documentation

robot_state::RobotStateConstPtr robot_interaction::LockedRobotState::getState ( ) const

get read-only access to the state.

Definition at line 61 of file locked_robot_state.cpp.

Definition at line 85 of file locked_robot_state.cpp.

Reimplemented in Super1.

Definition at line 102 of file locked_robot_state.cpp.

void robot_interaction::LockedRobotState::setState ( const robot_state::RobotState &  state)

Set the state to the new value.

Definition at line 67 of file locked_robot_state.cpp.


Member Data Documentation

robot_state::RobotStatePtr robot_interaction::LockedRobotState::state_ [private]

Definition at line 107 of file locked_robot_state.h.

boost::mutex robot_interaction::LockedRobotState::state_lock_ [mutable, protected]

Definition at line 101 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 Wed Aug 26 2015 12:44:19