How can I control a simple model using the keyboard?
Good day.
I want to make a plugin which allows me to control a simple model (a sphere, for example) using the keyboard (like w,a,s,d keys), but I don't know what functions or methods i need to use in the .cc file. Can anyone answer me with a simple tutorial about this problem?
Thanks a lot.
PS: I want to make this plugin without using ROS.
Asked by Adri on 2015-10-17 04:12:41 UTC
Answers
The question you asked has multiple solutions and is a bit open-ended. I suggest you take a look through the Gazebo tutorials, examples, and plugins.
You can also search this forum for keyboard solutions.
Try to write your own solution using the resources listed above. Good luck, and please update this post or create a new post if you run into specific problems along the way.
Asked by nkoenig on 2018-11-06 11:15:26 UTC
Comments
how do you want to control it? applying a force? settings joint or link positions? In terms of keyboard input, you probably don't want to do that in the plugin. You should make a standalone executable program that reads keyboard and sends messages over gazebo transport.
Asked by Peter Mitrano on 2016-07-01 18:06:22 UTC
there are examples ?
Asked by AlberSaber on 2018-11-06 07:05:58 UTC