17 #ifndef _GAZEBO_PLUGIN_EVENTS_REGION_HH_
18 #define _GAZEBO_PLUGIN_EVENTS_REGION_HH_
34 public:
Region() =
default;
37 public:
virtual ~Region() =
default;
41 public:
void Load(
const sdf::ElementPtr &_sdf);
52 public:
friend std::ostream&
operator<<(std::ostream &_out,
59 public: std::vector<math::Box>
boxes;
void Load(const sdf::ElementPtr &_sdf)
Load from a world file (inside a SimEvent plugin element)
Region()=default
Constructor.
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
bool Contains(const math::Vector3 &_p) const
Check if a point lies inside the region.
std::string name
Name of the region (as defined in the world file)
Definition: Region.hh:56
friend std::ostream & operator<<(std::ostream &_out, const Region &_region)
Output operator to print a region to the console.
std::vector< math::Box > boxes
The list of volumes inside this region.
Definition: Region.hh:59
std::shared_ptr< Region > RegionPtr
Definition: Region.hh:64
virtual ~Region()=default
Destructor.
A region, made of a list of boxes.
Definition: Region.hh:31