47 #include <flatland_plugins/update_timer.h> 48 #include <flatland_server/model_plugin.h> 50 #include <std_msgs/Bool.h> 52 #ifndef FLATLAND_PLUGINS_BOOL_SENSOR_H 53 #define FLATLAND_PLUGINS_BOOL_SENSOR_H 70 bool hit_something_ =
false;
78 void OnInitialize(
const YAML::Node &config)
override;
84 void AfterPhysicsStep(
const Timekeeper &timekeeper)
override;
90 void BeginContact(b2Contact *contact)
override;
96 void EndContact(b2Contact *contact)
override;
double update_rate_
rate to publish message at
Definition: bool_sensor.h:66
ros::Publisher publisher_
For publishing the collisions.
Definition: bool_sensor.h:72
Definition: dummy_model_plugin.h:59
Body * body_
The body to check collisions with.
Definition: bool_sensor.h:65
Definition: bool_sensor.h:63
UpdateTimer update_timer_
for managing update rate
Definition: bool_sensor.h:68
Definition: timekeeper.h:55
Definition: model_plugin.h:64
Definition: update_timer.h:55