Home | Tutorials | Wiki | Issues
Ask Your Question
1

How can I control a simple model using the keyboard?

asked 2015-10-17 04:17:01 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-10-20 09:03:40 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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.

edit flag offensive delete link more

Comments

Ok then. I think I will start learning about ROS. Thanks for the information.

Adri gravatar imageAdri ( 2015-10-22 04:45:32 -0600 )edit

Hi! How do you capture key presses with a Gazebo plugin? Thanks.

VansFannel gravatar imageVansFannel ( 2018-04-26 11:42:00 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-10-17 04:17:01 -0600

Seen: 1,430 times

Last updated: Oct 20 '15