Ask Your Question
1

How to use the keyboard teleop for programs written in C

asked 2014-10-24 14:30:49 -0500

bluejamesbond gravatar image

I am trying to add keyboard support to some programs written in C++. How would I subscribe to that topic and listen for certain keys?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-24 15:15:13 -0500

ahendrix gravatar image

Most of the existing teleop nodes don't publish key events; they interpret the keybaord events and publish some sort of command - usually velocity commands for moving a mobile base.

If you want to add keyboard support for an existing program, you'll probably have to do it the old-fashioned way - by reading stdin.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-10-24 14:30:49 -0500

Seen: 80 times

Last updated: Oct 24 '14