Can shortcut key to a rviz tool be set outside the class constructor? [closed]

asked 2017-02-20 10:48:41 -0500

huanxiner gravatar image

For certain reasons I would like to have a shortcut key to the rviz/PublishPoint tool, and seems like there is no default shortcut key set in the class constructor.

After a bit of research I didn't find a way to do this without modifying the original code... Do anybody have a hint on how this can be done? Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by huanxiner
close date 2017-03-29 12:12:35.328386

Comments

Unfortunately I do not think you can set the hotkey with an rviz plugin or even by instantiating rviz within your own Qt application. I think you'd have to modify the rviz code. You could open a pr for this though.

William gravatar image William  ( 2017-02-27 00:19:52 -0500 )edit

Thanks William, I may open a pr later then. By the way a temporary work-around was setting PublishPoint tool as the default tool and then one can always use the Escape key to go back to it...

huanxiner gravatar image huanxiner  ( 2017-02-27 09:33:05 -0500 )edit