move3d_ros_lib  0.1.0
move3d/ros API interface
All Classes Namespaces Functions Variables Typedefs Pages
robots_tf_publisher.h
1 #ifndef MOVE3D_ROBOTSTFPUBLISHER_H
2 #define MOVE3D_ROBOTSTFPUBLISHER_H
3 
4 #include <vector>
5 #include <string>
6 #include <tf/transform_broadcaster.h>
7 
8 namespace ros{
9 class NodeHandle;
10 }
11 class Robot;
12 namespace move3d {
13 
14 class SceneManager;
15 
22 {
23 public:
29  RobotsTfPublisher(SceneManager *scMgr, ros::NodeHandle *nh);
31 
41  bool publishTf(const std::vector<std::string > &names, const ros::Time &date);
51  bool publishTf(Robot *r, const ros::Time &date);
52 
53 private:
54  SceneManager *_scMgr;
55  ros::NodeHandle *_nh;
56  tf::TransformBroadcaster *_tf_br;
57 };
58 
59 } // namespace move3d
60 
61 #endif // MOVE3D_ROBOTSTFPUBLISHER_H
The SceneManager class provide interface between ROS and the move3d scene and project. Use it to start libmove3d and place the robots and objects in the environment.
Definition: scenemanager.h:25
RobotsTfPublisher(SceneManager *scMgr, ros::NodeHandle *nh)
RobotsTfPublisher constructor.
Definition: robots_tf_publisher.cpp:24
The RobotsTfPublisher class publishes tf for robots in the scene uppon request.
Definition: robots_tf_publisher.h:21
bool publishTf(const std::vector< std::string > &names, const ros::Time &date)
publish tf for given robots
Definition: robots_tf_publisher.cpp:35