Go to the documentation of this file.
17 #ifndef GAZEBO_PHYSICS_USERCMDMANAGER_HH_
18 #define GAZEBO_PHYSICS_USERCMDMANAGER_HH_
45 const std::string &_description,
46 const msgs::UserCmd::Type &_type);
52 public:
virtual void Undo();
55 public:
virtual void Redo();
59 public:
unsigned int Id()
const;
67 public: msgs::UserCmd::Type
Type()
const;
74 class UserCmdManagerPrivate;
89 private:
void OnUserCmdMsg(ConstUserCmdPtr &_msg);
94 private:
void OnUndoRedoMsg(ConstUndoRedoPtr &_msg);
97 private:
void PublishCurrentStats();
101 private: UserCmdManagerPrivate *dataPtr;
std::string Description() const
Return this command's description.
Forward declarations for the common classes.
Definition: Animation.hh:27
msgs::UserCmd::Type Type() const
Return this command's type.
virtual ~UserCmdManager()
Destructor.
UserCmdManager(const WorldPtr _world)
Constructor.
Forward declarations for transport.
default namespace for gazebo
virtual void Redo()
Redo this command.
unsigned int Id() const
Return this command's unique ID.
virtual void Undo()
Undo this command.
virtual ~UserCmd()
Destructor.
UserCmdPrivate * dataPtr
Definition: UserCmdManager.hh:71
Class which represents a user command, which can be "undone" and "redone".
Definition: UserCmdManager.hh:36
Manages user commands from the server side.
Definition: UserCmdManager.hh:78
UserCmd(const unsigned int _id, physics::WorldPtr _world, const std::string &_description, const msgs::UserCmd::Type &_type)
Constructor.
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:90