How to pick points in RVIZ with a joystick?

asked 2014-02-11 05:25:12 -0600

TFinleyosu gravatar image

I'd like to pick points (publish points) in RVIZ by using a joystick as well as interact with markers. There are a lot of ubuntu hacks out there but I see a lot of restrictions like they need to run in XWindows, etc. Has anyone seen or tried to do something like this?

I'm running hydro on Ubuntu 12.04.

Cheers

edit retag flag offensive close merge delete

Comments

I don't know anything direct, but have you considered writing a simple interactive markers node that is movable by a joystick?

dornhege gravatar image dornhege  ( 2014-02-11 05:50:36 -0600 )edit

My need to interact with markers is just with a button marker actually and not to move them. My goal is to use the joystick to select the proper button. My physical environment is one that is not good for a mouse.

TFinleyosu gravatar image TFinleyosu  ( 2014-02-11 06:23:45 -0600 )edit

Do you need anything specifi that is not achievable with subscribing to joy messages and sending markers depending on that? Maybe you can give a concrete example.

dornhege gravatar image dornhege  ( 2014-02-11 22:16:10 -0600 )edit

Thanks for the idea. I don't fully understand the capability of joy, so I will look into that now. I use RVIZ to visualize a 3D point cloud scene from the Kinect. I then need to pick 3 points from the scene that get used in another node with ICP.

TFinleyosu gravatar image TFinleyosu  ( 2014-02-12 02:46:12 -0600 )edit

Can you describe how you'd want to do that with a joystick?

dornhege gravatar image dornhege  ( 2014-02-12 03:11:21 -0600 )edit

I want the joystick to replace the mouse.

TFinleyosu gravatar image TFinleyosu  ( 2014-02-12 04:29:21 -0600 )edit

I´m trying to do exactly the same thing as you TFinleyosu (visualizing a 3D point cloud scene but from an Xtion) and I am also trying to replace the mouse with a joystick but I am not getting it to work. I am quite new to ROS. Would you please help me if you already got it work? Thanks.

Helfing gravatar image Helfing  ( 2017-10-24 07:09:32 -0600 )edit

It's been a while, but I did get it to work. The solution was not from Ros but with an Ubuntu package that turned a USB joystick into a mouse. I think it might simply be called Joy. Let me know if it works for you

TFinleyosu gravatar image TFinleyosu  ( 2017-10-24 07:32:58 -0600 )edit