Go to the documentation of this file.
18 #ifndef GAZEBO_PLUGINS_KEYSTOCMDVELPLUGIN_HH_
19 #define GAZEBO_PLUGINS_KEYSTOCMDVELPLUGIN_HH_
24 #include <ignition/transport/Node.hh>
31 class CmdVelKeyboardControls;
32 class KeysToCmdVelPluginPrivate;
81 public:
void Init()
override;
84 public:
void Reset()
override;
88 protected:
virtual void OnKeyPress(ConstAnyPtr &_msg);
92 private: std::unique_ptr<KeysToCmdVelPluginPrivate> dataPtr;
~KeysToCmdVelPlugin()
Destructor.
Forward declarations for the common classes.
Definition: Animation.hh:26
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:94
Send velocity commands to a model based on keypress messages received.
Definition: KeysToCmdVelPlugin.hh:69
void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf) override
Load function.
virtual void OnKeyPress(ConstAnyPtr &_msg)
Callback each time a key message is received.
KeysToCmdVelPlugin()
Constructor.
void Init() override
Override this method for custom plugin initialization behavior.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
void Reset() override
Override this method for custom plugin reset behavior.
A plugin with access to physics::Model.
Definition: Plugin.hh:303