17 #ifndef GAZEBO_PLUGIN_EVENTS_REGION_HH_
18 #define GAZEBO_PLUGIN_EVENTS_REGION_HH_
26 #include <ignition/math/Vector3.hh>
27 #include <ignition/math/Box.hh>
35 public:
Region() =
default;
38 public:
virtual ~Region() =
default;
42 public:
void Load(
const sdf::ElementPtr &_sdf);
53 public:
bool Contains(
const ignition::math::Vector3d &_p)
const;
59 public:
friend std::ostream&
operator<<(std::ostream &_out,
66 public: std::vector<ignition::math::Box>
boxes;
std::vector< ignition::math::Box > boxes
The list of volumes inside this region.
Definition: Region.hh:66
void Load(const sdf::ElementPtr &_sdf)
Load from a world file (inside a SimEvent plugin element)
Region()=default
Constructor.
bool Contains(const math::Vector3 &_p) const GAZEBO_DEPRECATED(8.0)
Check if a point lies inside the region.
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:44
std::string name
Name of the region (as defined in the world file)
Definition: Region.hh:63
friend std::ostream & operator<<(std::ostream &_out, const Region &_region)
Output operator to print a region to the console.
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
std::shared_ptr< Region > RegionPtr
Definition: Region.hh:71
virtual ~Region()=default
Destructor.
A region, made of a list of boxes.
Definition: Region.hh:32