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;
default namespace for gazebo
Forward declarations for transport.
Manages user commands from the server side.
Definition UserCmdManager.hh:78
virtual ~UserCmdManager()
Destructor.
UserCmdManager(const WorldPtr _world)
Constructor.
Class which represents a user command, which can be "undone" and "redone".
Definition UserCmdManager.hh:36
std::string Description() const
Return this command's description.
msgs::UserCmd::Type Type() const
Return this command's type.
virtual void Redo()
Redo this command.
virtual ~UserCmd()
Destructor.
UserCmdPrivate * dataPtr
Definition UserCmdManager.hh:71
UserCmd(const unsigned int _id, physics::WorldPtr _world, const std::string &_description, const msgs::UserCmd::Type &_type)
Constructor.
unsigned int Id() const
Return this command's unique ID.
virtual void Undo()
Undo this command.
boost::shared_ptr< World > WorldPtr
Definition PhysicsTypes.hh:89
Forward declarations for the common classes.
Definition Animation.hh:27