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> 34 public:
Region() =
default;
37 public:
virtual ~Region() =
default;
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;
std::vector< ignition::math::Box > 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)
Forward declarations for the common classes.
Definition: Animation.hh:26
Region()=default
Constructor.
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.
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
virtual ~Region()=default
Destructor.
A region, made of a list of boxes.
Definition: Region.hh:31