17#ifndef GAZEBO_PLUGIN_EVENTS_REGION_HH_
18#define GAZEBO_PLUGIN_EVENTS_REGION_HH_
25#include <ignition/math/Vector3.hh>
26#include <ignition/math/Box.hh>
41 public:
void Load(
const sdf::ElementPtr &_sdf);
46 public:
bool Contains(
const ignition::math::Vector3d &_p)
const;
52 public:
friend std::ostream&
operator<<(std::ostream &_out,
59 public: std::vector<ignition::math::Box>
boxes;
A region, made of a list of boxes.
Definition Region.hh:32
void Load(const sdf::ElementPtr &_sdf)
Load from a world file (inside a SimEvent plugin element)
std::vector< ignition::math::Box > boxes
The list of volumes inside this region.
Definition Region.hh:59
std::string name
Name of the region (as defined in the world file)
Definition Region.hh:56
virtual ~Region()=default
Destructor.
friend std::ostream & operator<<(std::ostream &_out, const Region &_region)
Output operator to print a region to the console.
bool Contains(const ignition::math::Vector3d &_p) const
Check if a point lies inside the region.
Region()=default
Constructor.
Forward declarations for the common classes.
Definition Animation.hh:27
std::shared_ptr< Region > RegionPtr
Definition Region.hh:64