18 #ifndef _GAZEBO_REGION_EVENT_BOX_PLUGIN_HH_
19 #define _GAZEBO_REGION_EVENT_BOX_PLUGIN_HH_
30 #include <gazebo/physics/physics.hh>
70 private:
bool PointInRegion(
const ignition::math::Vector3d &_point,
71 const ignition::math::Box &_box,
const ignition::math::Pose3d &_pose)
77 private:
void UpdateRegion(
const ignition::math::Vector3d &_size,
78 const ignition::math::Pose3d &_pose);
98 private: std::string modelName;
107 private: ignition::math::Vector3d boxSize;
110 private: ignition::math::Vector3d boxScale;
113 private: ignition::math::Pose3d boxPose;
116 private: ignition::math::Box box;
122 private:
bool hasStaleSizeAndPose;
126 private: std::map<std::string, common::Time> insiders;
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:88
std::mutex receiveMutex
Mutex to protect incoming messages.
Definition: RegionEventBoxPlugin.hh:104
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
void OnUpdate(const common::UpdateInfo &_info)
Updates the box event plugin at every physics iteration.
boost::shared_ptr< EventSource > EventSourcePtr
Definition: EventSource.hh:86
Information for use in an update event.
Definition: UpdateInfo.hh:30
void OnModelMsg(ConstModelPtr &_msg)
Callback when a model message is received.
transport::NodePtr node
Transport node pointer.
Definition: RegionEventBoxPlugin.hh:101
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
Load function.
A plugin that fires an event when another model enters the region defined by the size of this model's...
Definition: RegionEventBoxPlugin.hh:49
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
RegionEventBoxPlugin()
Constructor.
A plugin with access to physics::Model.
Definition: Plugin.hh:245