How can I control a simple model using the keyboard?

asked 2015-10-17 04:12:41 -0600

Adri gravatar image

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.

edit retag flag offensive close merge delete


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.

Peter Mitrano gravatar imagePeter Mitrano ( 2016-07-01 18:06:22 -0600 )edit