Gazebo | Ignition | Community
Ask Your Question
1

Controlling insertion of models with keyboard and meaning of "raw value of key pressed"

asked 2020-05-21 01:27:31 -0500

cadbury gravatar image

In the KeyEvent class, there is a variable called key. In documentation it is given that it is the raw value of key pressed. Can anyone explain the meaning of that with some examples? Also how can I write plugin for keyboard arrow key press to insert models in gazebo? Thank You.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-06-09 14:02:49 -0500

chapulina gravatar image

Can anyone explain the meaning of that with some examples?

We use Qt's key codes in a decimal format.

So for example, Qt::Key_A corresponds to the upper-case A (Shift + A), which is 0x41 hexadecimal / 65 decimal.

edit flag offensive delete link more

Comments

Thanks for the reply :)

cadbury gravatar imagecadbury ( 2020-06-10 02:14:15 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-05-21 01:21:25 -0500

Seen: 68 times

Last updated: Jun 09 '20