Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Capture key press with a Gazebo plugin

$
0
0
I'm new in Gazebo and I want to control a robot with the keyboard writing my own plugin. I have found how to move the model, following this tutorial: http://gazebosim.org/tutorials?tut=plugins_model&cat=write_plugin I think is using this code: this->model->SetLinearVel(ignition::math::Vector3d(.3, 0, 0)); But I don't know how when a key has been pressed and released. How can I get those events in a plugin?

Viewing all articles
Browse latest Browse all 7017

Trending Articles