Go to the documentation of this file.
18 #ifndef GAZEBO_PLUGINS_KEYSTOJOINTSPLUGIN_HH_
19 #define GAZEBO_PLUGINS_KEYSTOJOINTSPLUGIN_HH_
23 #include <ignition/transport/Node.hh>
120 private:
void OnKeyPress(ConstAnyPtr &_msg);
123 private: std::vector<KeyInfo> keys;
138 private: ignition::transport::Node nodeIgn;
Forward declarations for the common classes.
Definition: Animation.hh:27
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:93
physics::JointPtr joint
Pointer to the joint controlled by this key.
Definition: KeysToJointsPlugin.hh:38
KeysToJointsPlugin()
Constructor.
double scale
Increments for position, absolute values for velocity and force.
Definition: KeysToJointsPlugin.hh:46
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
Store information from SDF for each key.
Definition: KeysToJointsPlugin.hh:32
std::string type
Possible target types: position, velocity, force.
Definition: KeysToJointsPlugin.hh:41
~KeysToJointsPlugin()
Destructor.
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:117
int key
Key ASCII value (reference: http://ascii.cl/)
Definition: KeysToJointsPlugin.hh:35
A plugin with access to physics::Model.
Definition: Plugin.hh:313
Control joints in a model based on keypress messages received.
Definition: KeysToJointsPlugin.hh:108
virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf)
Load function.
#define GAZEBO_VISIBLE
Definition: system.hh:59