Public Member Functions | Private Member Functions | Private Attributes | List of all members
rsm::KinectMappingState Class Reference

Dummy state for mapping at a reached goal during exploration. Only initiates transition to CalculateGoalState. More...

#include <KinectMappingState.h>

Inheritance diagram for rsm::KinectMappingState:
Inheritance graph
[legend]

Public Member Functions

 KinectMappingState ()
 
void onActive ()
 
void onEntry ()
 
void onExit ()
 
void onExplorationStart (bool &success, std::string &message)
 
void onExplorationStop (bool &success, std::string &message)
 
void onInterrupt (int interrupt)
 Called when an operation mode interrupt was received. More...
 
void onSetup ()
 
void onWaypointFollowingStart (bool &success, std::string &message)
 
void onWaypointFollowingStop (bool &success, std::string &message)
 
 ~KinectMappingState ()
 
- Public Member Functions inherited from rsm::BaseState
 BaseState ()
 
std::string getName ()
 
StateInterfacegetStateInterface ()
 
void setStateInterface (StateInterface *stateinterface)
 
virtual ~BaseState ()
 

Private Member Functions

void jointStateCallback (sensor_msgs::JointState::ConstPtr joint_state)
 

Private Attributes

ros::Subscriber _joint_states_subscriber
 
ros::Publisher _kinect_joint_controller
 
bool _message_send
 
int _navigation_completed_status
 
ros::ServiceClient _navigation_goal_completed_service
 
ros::NodeHandle _nh
 
bool _position_reached
 
ros::ServiceClient _reset_kinect_position_client
 
int _swivel_state
 

Additional Inherited Members

- Protected Attributes inherited from rsm::BaseState
bool _interrupt_occured
 
std::string _name
 
StateInterface_stateinterface
 

Detailed Description

Dummy state for mapping at a reached goal during exploration. Only initiates transition to CalculateGoalState.

Definition at line 32 of file KinectMappingState.h.

Constructor & Destructor Documentation

rsm::KinectMappingState::KinectMappingState ( )

Constructor

Definition at line 5 of file KinectMappingState.cpp.

rsm::KinectMappingState::~KinectMappingState ( )

Destructor

Definition at line 8 of file KinectMappingState.cpp.

Member Function Documentation

void rsm::KinectMappingState::jointStateCallback ( sensor_msgs::JointState::ConstPtr  joint_state)
private

Callback for joint states to check if camera reached the desired position

Parameters
joint_statejoint state message

Definition at line 147 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onActive ( )
virtual

Process method (step-wise, never block this method)

Implements rsm::BaseState.

Definition at line 32 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onEntry ( )
virtual

Called once when activated

Reimplemented from rsm::BaseState.

Definition at line 28 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onExit ( )
virtual

Called once when left

Reimplemented from rsm::BaseState.

Definition at line 88 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onExplorationStart ( bool &  success,
std::string &  message 
)
virtual

Called when exploration was started manually

Reimplemented from rsm::BaseState.

Definition at line 102 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onExplorationStop ( bool &  success,
std::string &  message 
)
virtual

Called when exploration was stopped manually

Reimplemented from rsm::BaseState.

Definition at line 108 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onInterrupt ( int  interrupt)
virtual

Called when an operation mode interrupt was received.

Parameters
interruptKind of interrupt (0=EmergencyStop, 1=TeleoperationInterupt)

Reimplemented from rsm::BaseState.

Definition at line 127 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onSetup ( )
virtual

Called once when registered at StateInterface

Reimplemented from rsm::BaseState.

Definition at line 11 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onWaypointFollowingStart ( bool &  success,
std::string &  message 
)
virtual

Called when waypoint following was started/paused manually

Reimplemented from rsm::BaseState.

Definition at line 115 of file KinectMappingState.cpp.

void rsm::KinectMappingState::onWaypointFollowingStop ( bool &  success,
std::string &  message 
)
virtual

Called when waypoint following was stopped manually

Reimplemented from rsm::BaseState.

Definition at line 121 of file KinectMappingState.cpp.

Member Data Documentation

ros::Subscriber rsm::KinectMappingState::_joint_states_subscriber
private

Definition at line 95 of file KinectMappingState.h.

ros::Publisher rsm::KinectMappingState::_kinect_joint_controller
private

Definition at line 96 of file KinectMappingState.h.

bool rsm::KinectMappingState::_message_send
private

Move command sent to kinect controller

Definition at line 111 of file KinectMappingState.h.

int rsm::KinectMappingState::_navigation_completed_status
private

Was the mapping at the exploration goal successful or not

Definition at line 115 of file KinectMappingState.h.

ros::ServiceClient rsm::KinectMappingState::_navigation_goal_completed_service
private

Definition at line 98 of file KinectMappingState.h.

ros::NodeHandle rsm::KinectMappingState::_nh
private

Definition at line 94 of file KinectMappingState.h.

bool rsm::KinectMappingState::_position_reached
private

If the current state reached it's goal already

Definition at line 107 of file KinectMappingState.h.

ros::ServiceClient rsm::KinectMappingState::_reset_kinect_position_client
private

Definition at line 97 of file KinectMappingState.h.

int rsm::KinectMappingState::_swivel_state
private

Current state of swiveling the Kinect camera from left to right and back (0: to left, 1: left to right: 2: back to center)

Definition at line 103 of file KinectMappingState.h.


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


rsm_additions
Author(s): Marco Steinbrink
autogenerated on Tue Mar 16 2021 02:44:35