Public Member Functions | Protected Member Functions | Protected Attributes
planning_environment::CollisionSpaceMonitor Class Reference

CollisionSpaceMonitor is a class which in addition to being aware of a robot model, is also aware of a collision space. More...

#include <collision_space_monitor.h>

Inheritance diagram for planning_environment::CollisionSpaceMonitor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CollisionSpaceMonitor (CollisionModels *cm, tf::TransformListener *tf)
CollisionModelsgetCollisionModels (void) const
 Return the instance of collision models that is being used.
const
collision_space::EnvironmentModel
getEnvironmentModel (void) const
 Return the instance of the environment model maintained.
double getPointCloudPadd (void) const
 Returns the padding used for pointclouds (for collision checking)
bool haveMap (void) const
 Return true if map has been received.
bool isEnvironmentMonitorStarted (void) const
 Check if the environment monitor is currently started.
bool isMapUpdated (double sec) const
 Return true if a map update has been received in the last sec seconds. If sec < 10us, this function always returns true.
const ros::TimelastMapUpdate (void) const
 Return the last update time for the map.
void setUseCollisionMap (bool use)
void startEnvironmentMonitor (void)
 Start the environment monitor. By default, the monitor is started after creation.
void stopEnvironmentMonitor (void)
 Stop the environment monitor.
void waitForMap (void) const
 Wait until a map is received.
virtual ~CollisionSpaceMonitor (void)

Protected Member Functions

virtual bool attachObjectCallback (const arm_navigation_msgs::AttachedCollisionObjectConstPtr &attachedObject)
void collisionMapAsBoxes (const arm_navigation_msgs::CollisionMap &collisionMap, std::vector< shapes::Shape * > &boxes, std::vector< tf::Transform > &poses)
void collisionMapAsBoxes (const arm_navigation_msgs::CollisionMapConstPtr &collisionMap, std::vector< shapes::Shape * > &boxes, std::vector< tf::Transform > &poses)
void collisionMapAsSpheres (const arm_navigation_msgs::CollisionMapConstPtr &collisionMap, std::vector< shapes::Shape * > &spheres, std::vector< tf::Transform > &poses)
void collisionMapCallback (const arm_navigation_msgs::CollisionMapConstPtr &collisionMap)
void collisionMapUpdateCallback (const arm_navigation_msgs::CollisionMapConstPtr &collisionMap)
void collisionObjectCallback (const arm_navigation_msgs::CollisionObjectConstPtr &collisionObject)
void setupCSM (void)
void updateCollisionSpace (const arm_navigation_msgs::CollisionMapConstPtr &collisionMap, bool clear)

Protected Attributes

message_filters::Subscriber
< arm_navigation_msgs::AttachedCollisionObject > * 
attachedCollisionObjectSubscriber_
CollisionModelscm_
boost::recursive_mutex collision_map_lock_
tf::MessageFilter
< arm_navigation_msgs::CollisionMap > * 
collisionMapFilter_
message_filters::Subscriber
< arm_navigation_msgs::CollisionMap > * 
collisionMapSubscriber_
tf::MessageFilter
< arm_navigation_msgs::CollisionMap > * 
collisionMapUpdateFilter_
message_filters::Subscriber
< arm_navigation_msgs::CollisionMap > * 
collisionMapUpdateSubscriber_
tf::MessageFilter
< arm_navigation_msgs::CollisionObject > * 
collisionObjectFilter_
message_filters::Subscriber
< arm_navigation_msgs::CollisionObject > * 
collisionObjectSubscriber_
bool envMonitorStarted_
bool have_map_
ros::Time last_map_update_
double pointcloud_padd_
bool use_collision_map_

Detailed Description

CollisionSpaceMonitor is a class which in addition to being aware of a robot model, is also aware of a collision space.

Definition at line 54 of file collision_space_monitor.h.


Constructor & Destructor Documentation

Definition at line 58 of file collision_space_monitor.h.

Definition at line 64 of file collision_space_monitor.h.


Member Function Documentation

Definition at line 371 of file collision_space_monitor.cpp.

void planning_environment::CollisionSpaceMonitor::collisionMapAsBoxes ( const arm_navigation_msgs::CollisionMap collisionMap,
std::vector< shapes::Shape * > &  boxes,
std::vector< tf::Transform > &  poses 
) [protected]

Definition at line 294 of file collision_space_monitor.cpp.

void planning_environment::CollisionSpaceMonitor::collisionMapAsBoxes ( const arm_navigation_msgs::CollisionMapConstPtr collisionMap,
std::vector< shapes::Shape * > &  boxes,
std::vector< tf::Transform > &  poses 
) [protected]

Definition at line 288 of file collision_space_monitor.cpp.

void planning_environment::CollisionSpaceMonitor::collisionMapAsSpheres ( const arm_navigation_msgs::CollisionMapConstPtr collisionMap,
std::vector< shapes::Shape * > &  spheres,
std::vector< tf::Transform > &  poses 
) [protected]

Definition at line 232 of file collision_space_monitor.cpp.

Definition at line 227 of file collision_space_monitor.cpp.

Definition at line 221 of file collision_space_monitor.cpp.

Definition at line 366 of file collision_space_monitor.cpp.

Return the instance of collision models that is being used.

Definition at line 102 of file collision_space_monitor.h.

Return the instance of the environment model maintained.

Definition at line 96 of file collision_space_monitor.h.

Returns the padding used for pointclouds (for collision checking)

Definition at line 126 of file collision_space_monitor.h.

Return true if map has been received.

Definition at line 108 of file collision_space_monitor.h.

Check if the environment monitor is currently started.

Definition at line 90 of file collision_space_monitor.h.

Return true if a map update has been received in the last sec seconds. If sec < 10us, this function always returns true.

Definition at line 180 of file collision_space_monitor.cpp.

Return the last update time for the map.

Definition at line 120 of file collision_space_monitor.h.

Definition at line 52 of file collision_space_monitor.cpp.

Definition at line 99 of file collision_space_monitor.cpp.

Start the environment monitor. By default, the monitor is started after creation.

Definition at line 70 of file collision_space_monitor.cpp.

Stop the environment monitor.

Definition at line 137 of file collision_space_monitor.cpp.

Definition at line 353 of file collision_space_monitor.cpp.

Wait until a map is received.

Definition at line 202 of file collision_space_monitor.cpp.


Member Data Documentation

Definition at line 163 of file collision_space_monitor.h.

Definition at line 148 of file collision_space_monitor.h.

Definition at line 167 of file collision_space_monitor.h.

Definition at line 157 of file collision_space_monitor.h.

Definition at line 156 of file collision_space_monitor.h.

Definition at line 159 of file collision_space_monitor.h.

Definition at line 158 of file collision_space_monitor.h.

Definition at line 161 of file collision_space_monitor.h.

Definition at line 160 of file collision_space_monitor.h.

Definition at line 151 of file collision_space_monitor.h.

Definition at line 153 of file collision_space_monitor.h.

Definition at line 154 of file collision_space_monitor.h.

Definition at line 149 of file collision_space_monitor.h.

Definition at line 165 of file collision_space_monitor.h.


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


planning_environment
Author(s): Ioan Sucan
autogenerated on Mon Dec 2 2013 12:34:43