18 #ifndef _GAZEBO_ARRANGE_PLUGIN_HH_
19 #define _GAZEBO_ARRANGE_PLUGIN_HH_
24 #include <boost/shared_ptr.hpp>
29 #include <gazebo/transport/transport.hh>
51 public:
virtual void Init();
54 public:
virtual void Reset();
59 public:
bool SetArrangement(
const std::string &_arrangement);
62 public:
void ArrangementCallback(ConstGzStringPtr &_msg);
68 protected: sdf::ElementPtr
sdf;
82 typedef std::map<std::string, ObjectPtr>
Object_M;
88 typedef std::map<std::string, math::Pose>
Pose_M;
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:84
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Arrangement_M arrangements
Information about arrangements.
Definition: ArrangePlugin.hh:94
std::map< std::string, ObjectPtr > Object_M
Map of strings to model pointers.
Definition: ArrangePlugin.hh:82
A plugin with access to physics::World.
Definition: Plugin.hh:220
math::Pose pose
Initial object pose.
Definition: ArrangePlugin.hh:77
transport::NodePtr node
Node for Gazebo transport.
Definition: ArrangePlugin.hh:106
transport::SubscriberPtr sub
Subscriber for listening to changing arrangements.
Definition: ArrangePlugin.hh:109
std::map< std::string, math::Pose > Pose_M
Map of strings to model poses.
Definition: ArrangePlugin.hh:88
std::map< std::string, Pose_M > Arrangement_M
Map of strings to Pose_M (arrangement map).
Definition: ArrangePlugin.hh:91
std::string eventTopicName
Topic to listen on for changing arrangments.
Definition: ArrangePlugin.hh:103
Definition: ArrangePlugin.hh:37
sdf::ElementPtr sdf
SDF pointer.
Definition: ArrangePlugin.hh:68
default namespace for gazebo
std::string currentArrangementName
Current arrangement name.
Definition: ArrangePlugin.hh:100
std::string initialArrangementName
Initial arrangement name.
Definition: ArrangePlugin.hh:97
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:80
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
Class to store info about each object.
Definition: ArrangePlugin.hh:71
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
physics::WorldPtr world
World pointer.
Definition: ArrangePlugin.hh:65
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66
boost::shared_ptr< Object > ObjectPtr
Definition: ArrangePlugin.hh:79
Object_M objects
Collection of models.
Definition: ArrangePlugin.hh:85
physics::ModelPtr model
Model pointer.
Definition: ArrangePlugin.hh:74