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;
92 private: std::unique_ptr<KeysToCmdVelPluginPrivate> dataPtr;
Send velocity commands to a model based on keypress messages received.
Definition KeysToCmdVelPlugin.hh:70
KeysToCmdVelPlugin()
Constructor.
void Init() override
Override this method for custom plugin initialization behavior.
void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf) override
Load function.
void Reset() override
Override this method for custom plugin reset behavior.
virtual void OnKeyPress(ConstAnyPtr &_msg)
Callback each time a key message is received.
~KeysToCmdVelPlugin()
Destructor.
A plugin with access to physics::Model.
Definition Plugin.hh:304
boost::shared_ptr< Model > ModelPtr
Definition PhysicsTypes.hh:93
Forward declarations for the common classes.
Definition Animation.hh:27