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 solve this problem without using ROS.
Asked by Adri on 2015-10-17 04:17:01 UTC
Answers
Is there a specific reason why you don't want to use ROS? Moving around a model (with a controller) is exactly what ROS is good for. You could make a gazebo model plugin that captures key presses and then moves around a model by resetting it's position each time but you would have to write your own controller. Gazebo ROS plugins already have such functionality.
Asked by niall on 2015-10-20 09:03:40 UTC
Comments
Ok then. I think I will start learning about ROS. Thanks for the information.
Asked by Adri on 2015-10-22 04:45:32 UTC
Hi! How do you capture key presses with a Gazebo plugin? Thanks.
Asked by VansFannel on 2018-04-26 11:42:00 UTC
Comments