ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Alternative controls (e.g. joystick) for interactive markers

asked 2012-07-18 07:01:31 -0500

danep gravatar image

updated 2016-10-24 09:03:09 -0500

ngrennan gravatar image

Interactive markers (and rviz in general) seem to be designed completely around mouse-based control (using the handleMouseEvent callback). I am interested in instead using a Novint Falcon, Microsoft Kinect, or similar 3D interaction device to select and manipulate interactive markers in rviz.

I'm not quite sure how to approach this project. My first idea was to override all of the classes that implement handleMouseEvent and write a 'handleJoystickEvent' callback. However, I'm not sure how to actually call handleJoystickEvent, or whether this is even the right approach in general.

I would really appreciate any advice on how to proceed. Note that this doesn't have to be a very 'general' solution at first- it can be hardcoded to support only a single type of device.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-07-20 22:56:51 -0500

fergs gravatar image

One possibility (and this is a bit of a hack) is to build the joystick aspects into the node which is running your Interactive Marker Server instance. While not actually going through RVIZ, you will see the updates in RVIZ whenever the server moves the marker itself.

edit flag offensive delete link more

Comments

Thanks, this put me on the right track! I created a TF broadcaster to link the joystick and robot transforms, and then added just a couple of lines of code to the interactive marker server to adjust the marker positions based on the joystick position.

danep gravatar image danep  ( 2012-08-04 06:12:27 -0500 )edit

Not to reopen an old topic, but did you ever publish your code or wrist anything up about how to do what you did? I want to do EXACTLY the same thing now too :)

anonymous userAnonymous ( 2014-06-19 19:16:17 -0500 )edit

I created a package allowing you to control interactive markers with the Phantom Omni, maybe it will help you: https://github.com/danepowell/omni_im

danep gravatar image danep  ( 2014-06-21 09:21:25 -0500 )edit

Excellent, thank you very much danep, look forward to checking it out later this week :)

anonymous userAnonymous ( 2014-06-22 21:28:18 -0500 )edit

danep, I just tried to follow the link you supplied and got a 404 error, perhaps the link is incorrect?

anonymous userAnonymous ( 2014-06-22 21:29:00 -0500 )edit

Sorry, the forum mangled the link: https://github.com/danepowell/omni_im If this doesn't work, just copy and paste the text of the link into your browser.

danep gravatar image danep  ( 2014-06-24 08:56:46 -0500 )edit
anonymous userAnonymous ( 2014-06-25 18:32:45 -0500 )edit
0

answered 2015-12-16 18:18:09 -0500

masihec gravatar image

Hi, I created a sphere in RVIZ and i want to know if i can move this sphere with a phantom omni device with the omni_im node? Thanks.

edit flag offensive delete link more

Question Tools

4 followers

Stats

Asked: 2012-07-18 07:01:31 -0500

Seen: 498 times

Last updated: Dec 16 '15