22 #ifndef ROTORS_GAZEBO_PLUGINS_GAZEBO_OCTOMAP_PLUGIN_H 23 #define ROTORS_GAZEBO_PLUGINS_GAZEBO_OCTOMAP_PLUGIN_H 29 #include <gazebo/common/common.hh> 30 #include <gazebo/gazebo.hh> 31 #include <gazebo/physics/physics.hh> 34 #include <rotors_comm/Octomap.h> 36 #include <std_srvs/Empty.h> 54 void Load(physics::WorldPtr _parent, sdf::ElementPtr _sdf);
57 gazebo::physics::RayShapePtr ray,
58 const double leaf_size);
60 void FloodFill(
const ignition::math::Vector3d & seed_point,
61 const ignition::math::Vector3d & bounding_box_origin,
62 const ignition::math::Vector3d & bounding_box_lengths,
63 const double leaf_size);
90 rotors_comm::Octomap::Response& res);
95 #endif // ROTORS_GAZEBO_PLUGINS_GAZEBO_OCTOMAP_PLUGIN_H
bool ServiceCallback(rotors_comm::Octomap::Request &req, rotors_comm::Octomap::Response &res)
ros::Publisher octomap_publisher_
void FloodFill(const ignition::math::Vector3d &seed_point, const ignition::math::Vector3d &bounding_box_origin, const ignition::math::Vector3d &bounding_box_lengths, const double leaf_size)
void Load(physics::WorldPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
octomap::OcTree * octomap_
static const std::string kDefaultNamespace
void CreateOctomap(const rotors_comm::Octomap::Request &msg)
Creates octomap by floodfilling freespace.
ros::NodeHandle node_handle_
virtual ~OctomapFromGazeboWorld()
bool CheckIfInterest(const ignition::math::Vector3d ¢ral_point, gazebo::physics::RayShapePtr ray, const double leaf_size)
Octomap plugin for Gazebo.