Robotics StackExchange | Archived questions

How to pick points in RVIZ with a joystick?

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

Asked by TFinleyosu on 2014-02-11 06:25:12 UTC

Comments

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

Asked by dornhege on 2014-02-11 06:50:36 UTC

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.

Asked by TFinleyosu on 2014-02-11 07:23:45 UTC

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.

Asked by dornhege on 2014-02-11 23:16:10 UTC

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.

Asked by TFinleyosu on 2014-02-12 03:46:12 UTC

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

Asked by dornhege on 2014-02-12 04:11:21 UTC

I want the joystick to replace the mouse.

Asked by TFinleyosu on 2014-02-12 05:29:21 UTC

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.

Asked by Helfing on 2017-10-24 07:09:32 UTC

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

Asked by TFinleyosu on 2017-10-24 07:32:58 UTC

Answers