Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
FootprintObserver Class Reference

checks the footprint of care-o-bot and advertises a service to get the adjusted footprint More...

#include <cob_footprint_observer.h>

List of all members.

Public Member Functions

void checkFootprint ()
 checks the footprint of the robot if it needs to be enlarged due to arm or tray
 FootprintObserver ()
 constructor
bool getFootprintCB (cob_footprint_observer::GetFootprint::Request &req, cob_footprint_observer::GetFootprint::Response &resp)
 callback for GetFootprint service
 ~FootprintObserver ()
 destructor

Public Attributes

ros::NodeHandle nh_
ros::ServiceServer srv_get_footprint_
ros::Publisher topic_pub_footprint_

Private Member Functions

std::vector< geometry_msgs::PointloadRobotFootprint (ros::NodeHandle node)
 loads the robot footprint from the costmap node
void publishFootprint ()
 publishes the adjusted footprint as geometry_msgs::StampedPolygon message
double sign (double x)
 computes the sign of x

Private Attributes

double footprint_front_
double footprint_front_initial_
double footprint_left_
double footprint_left_initial_
double footprint_rear_
double footprint_rear_initial_
double footprint_right_
double footprint_right_initial_
std::string frames_to_check_
ros::Time last_tf_missing_
pthread_mutex_t m_mutex
std::string robot_base_frame_
std::vector< geometry_msgs::Pointrobot_footprint_
tf::TransformListener tf_listener_

Detailed Description

checks the footprint of care-o-bot and advertises a service to get the adjusted footprint

Definition at line 83 of file cob_footprint_observer.h.


Constructor & Destructor Documentation

constructor

Definition at line 59 of file cob_footprint_observer.cpp.

destructor

Definition at line 95 of file cob_footprint_observer.cpp.


Member Function Documentation

checks the footprint of the robot if it needs to be enlarged due to arm or tray

Definition at line 275 of file cob_footprint_observer.cpp.

callback for GetFootprint service

Parameters:
req- request message to service
resp- response message from service
Returns:
service call successfull

Definition at line 99 of file cob_footprint_observer.cpp.

loads the robot footprint from the costmap node

Parameters:
node- costmap node to check for footprint parameter
Returns:
points of a polygon specifying the footprint

Definition at line 120 of file cob_footprint_observer.cpp.

publishes the adjusted footprint as geometry_msgs::StampedPolygon message

Definition at line 342 of file cob_footprint_observer.cpp.

double FootprintObserver::sign ( double  x) [private]

computes the sign of x

Parameters:
x- number
Returns:
sign of x

Definition at line 362 of file cob_footprint_observer.cpp.


Member Data Documentation

Definition at line 136 of file cob_footprint_observer.h.

Definition at line 135 of file cob_footprint_observer.h.

Definition at line 136 of file cob_footprint_observer.h.

Definition at line 135 of file cob_footprint_observer.h.

Definition at line 136 of file cob_footprint_observer.h.

Definition at line 135 of file cob_footprint_observer.h.

Definition at line 136 of file cob_footprint_observer.h.

Definition at line 135 of file cob_footprint_observer.h.

std::string FootprintObserver::frames_to_check_ [private]

Definition at line 138 of file cob_footprint_observer.h.

Definition at line 143 of file cob_footprint_observer.h.

pthread_mutex_t FootprintObserver::m_mutex [private]

Definition at line 141 of file cob_footprint_observer.h.

Definition at line 109 of file cob_footprint_observer.h.

std::string FootprintObserver::robot_base_frame_ [private]

Definition at line 139 of file cob_footprint_observer.h.

Definition at line 134 of file cob_footprint_observer.h.

Definition at line 111 of file cob_footprint_observer.h.

Definition at line 137 of file cob_footprint_observer.h.

Definition at line 110 of file cob_footprint_observer.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


cob_footprint_observer
Author(s): Matthias Gruhler
autogenerated on Fri Mar 1 2013 17:47:20