ed_gui_server
robot.h
Go to the documentation of this file.
1 #ifndef ED_GUI_SERVER_ROBOT_H_
2 #define ED_GUI_SERVER_ROBOT_H_
3 
4 #include <ed_gui_server_msgs/Color.h>
5 #include <ed_gui_server_msgs/EntityInfo.h>
6 
7 #include <ed/types.h>
8 
9 #include <geolib/datatypes.h>
10 
11 #include <memory>
12 
13 struct Visual
14 {
16  ed_gui_server_msgs::Color color;
18 };
19 
20 namespace gui
21 {
22 
24 
25 class Robot
26 {
27 
28 public:
29 
30  Robot();
31 
32  Robot(const ed::TFBufferConstPtr& tf_buffer);
33 
34  virtual ~Robot();
35 
36  void initialize(const std::string& name, const std::string& urdf_rosparam, const std::string& tf_prefix);
37 
38  inline const std::string& name() const { return name_; }
39 
40  geo::ShapeConstPtr getShape(const std::string& id) const;
41 
42  bool contains(const std::string& id) const;
43 
45 
46 private:
47 
49 
51 
53 
55 
57 
58 };
59 
60 } // end namespace gui
61 
62 #endif
datatypes.h
std::string
ed::TFBufferConstPtr
shared_ptr< const tf2_ros::Buffer > TFBufferConstPtr
std::shared_ptr
std::vector
gui::Robot::urdf_rosparam_
std::string urdf_rosparam_
Definition: robot.h:50
Visual::link
std::string link
Definition: robot.h:17
gui::Robot::getEntities
void getEntities(std::vector< ed_gui_server_msgs::EntityInfo > &entities) const
Definition: robot.cpp:289
gui::Robot::getShape
geo::ShapeConstPtr getShape(const std::string &id) const
Definition: robot.cpp:267
Visual
Definition: robot.h:13
gui::Robot::contains
bool contains(const std::string &id) const
Definition: robot.cpp:278
gui::Robot::initialize
void initialize(const std::string &name, const std::string &urdf_rosparam, const std::string &tf_prefix)
Definition: robot.cpp:158
gui::Robot::~Robot
virtual ~Robot()
Definition: robot.cpp:151
gui::Robot::name_
std::string name_
Definition: robot.h:48
gui::ShapeMap
std::map< std::string, Visual > ShapeMap
Definition: robot.h:23
gui::Robot
Definition: robot.h:25
std::map< std::string, Visual >
memory
Visual::shape
geo::ShapeConstPtr shape
Definition: robot.h:15
Visual::color
ed_gui_server_msgs::Color color
Definition: robot.h:16
gui::Robot::name
const std::string & name() const
Definition: robot.h:38
gui::Robot::Robot
Robot()
Definition: robot.cpp:136
gui
Definition: robot.cpp:131
gui::Robot::tf_buffer_
ed::TFBufferConstPtr tf_buffer_
Definition: robot.h:54
gui::Robot::shapes_
ShapeMap shapes_
Definition: robot.h:56
types.h
gui::Robot::tf_prefix_
std::string tf_prefix_
Definition: robot.h:52
entities
std::map< std::string, EntityViz > entities
Definition: rviz_publisher.cpp:25