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