47 #ifndef FLATLAND_SERVER_DEBUG_VISUALIZATION_H 48 #define FLATLAND_SERVER_DEBUG_VISUALIZATION_H 50 #include <Box2D/Box2D.h> 51 #include <flatland_msgs/DebugTopicList.h> 53 #include <visualization_msgs/MarkerArray.h> 58 #include "flatland_server/body.h" 62 ros::Publisher publisher;
63 bool needs_publishing;
64 visualization_msgs::MarkerArray markers;
72 std::map<std::string, DebugTopic> topics_;
73 ros::NodeHandle node_;
74 ros::Publisher topic_list_publisher_;
95 void Visualize(std::string name, b2Body* body,
float r,
float g,
float b,
107 void Visualize(std::string name, b2Joint* joint,
float r,
float g,
float b,
119 void VisualizeLayer(std::string name,
Body* body);
125 void Reset(std::string name);
136 void BodyToMarkers(visualization_msgs::MarkerArray& markers, b2Body* body,
137 float r,
float g,
float b,
float a);
148 void JointToMarkers(visualization_msgs::MarkerArray& markers, b2Joint* joint,
149 float r,
float g,
float b,
float a);
155 void AddTopicIfNotExist(
const std::string& name);
160 void PublishTopicList();
163 #endif // FLATLAND_SERVER_DEBUG_VISUALIZATION_H Definition: debug_visualization.h:61
Definition: debug_visualization.h:67