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;
76 public:
void Init()
override;
87 private: std::unique_ptr<KeysToCmdVelPluginPrivate> dataPtr;
~KeysToCmdVelPlugin()
Destructor.
Forward declarations for the common classes.
Definition: Animation.hh:27
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:93
Send velocity commands to a model based on keypress messages received.
Definition: KeysToCmdVelPlugin.hh:65
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.
void Reset() override
Override this method for custom plugin reset behavior.
A plugin with access to physics::Model.
Definition: Plugin.hh:313
#define GAZEBO_VISIBLE
Definition: system.hh:59