Octomap plugin for Gazebo. More...
#include <gazebo_octomap_plugin.h>
Public Member Functions | |
OctomapFromGazeboWorld () | |
virtual | ~OctomapFromGazeboWorld () |
Protected Member Functions | |
bool | CheckIfInterest (const ignition::math::Vector3d ¢ral_point, gazebo::physics::RayShapePtr ray, const double leaf_size) |
void | CreateOctomap (const rotors_comm::Octomap::Request &msg) |
Creates octomap by floodfilling freespace. More... | |
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. More... | |
Private Member Functions | |
bool | ServiceCallback (rotors_comm::Octomap::Request &req, rotors_comm::Octomap::Response &res) |
Private Attributes | |
ros::NodeHandle | node_handle_ |
octomap::OcTree * | octomap_ |
ros::Publisher | octomap_publisher_ |
ros::ServiceServer | srv_ |
physics::WorldPtr | world_ |
Octomap plugin for Gazebo.
This plugin is dependent on ROS, and is not built if NO_ROS=TRUE is provided to CMakeLists.txt. The PX4/Firmware build does not build this file.
Definition at line 43 of file gazebo_octomap_plugin.h.
|
inline |
Definition at line 45 of file gazebo_octomap_plugin.h.
|
virtual |
Definition at line 30 of file gazebo_octomap_plugin.cpp.
|
protected |
Definition at line 135 of file gazebo_octomap_plugin.cpp.
|
protected |
Creates octomap by floodfilling freespace.
Creates an octomap of the environment in 3 steps:
Can give incorrect results in the following situations:
Definition at line 172 of file gazebo_octomap_plugin.cpp.
|
protected |
Definition at line 99 of file gazebo_octomap_plugin.cpp.
|
protected |
Load the plugin.
[in] | _parent | Pointer to the world that loaded this plugin. |
[in] | _sdf | SDF element that describes the plugin. |
Definition at line 35 of file gazebo_octomap_plugin.cpp.
|
private |
Definition at line 57 of file gazebo_octomap_plugin.cpp.
|
private |
Definition at line 85 of file gazebo_octomap_plugin.h.
|
private |
Definition at line 87 of file gazebo_octomap_plugin.h.
|
private |
Definition at line 88 of file gazebo_octomap_plugin.h.
|
private |
Definition at line 86 of file gazebo_octomap_plugin.h.
|
private |
Definition at line 84 of file gazebo_octomap_plugin.h.