Robotics StackExchange | Archived questions

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

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!

Asked by huanxiner on 2017-02-20 11:48:41 UTC

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.

Asked by William on 2017-02-27 01:19:52 UTC

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...

Asked by huanxiner on 2017-02-27 10:33:05 UTC

Answers