ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Get js0 data without joy publishing

asked 2018-08-14 12:20:51 -0600

jamesR gravatar image

I'm trying to protect the input data stream into my robot, but not by subscribing to joy. Rather I'd like to add joy code into my cpp or just directly get the info from /dev/input/js0. I am using ROS Kinetic.

I've searched and haven't been able to quite find the answer that will work with ROS.

I appreciate any help, and would be happy to answer any questions to help.

edit retag flag offensive close merge delete



Well: my first question would be: what do you hope to gain by that? I'm particularly interested in your "I'm trying to protect the input data stream to my robot" remark there.

gvdhoorn gravatar image gvdhoorn  ( 2018-08-14 12:26:35 -0600 )edit

You could always start by modifying the source code from the joystick_drivers package to do what you desire with the /dev/js0 data instead of publishing it to /joy

jarvisschultz gravatar image jarvisschultz  ( 2018-08-14 14:27:31 -0600 )edit

Are you trying to 'hide' the joystick values from the wider ROS system?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-08-15 06:08:36 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-14 16:37:34 -0600

Are you sure that you can not do what you need by setting the device or device name parameters in joy?

You might also consider combining this with some udev rules.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-08-14 12:20:51 -0600

Seen: 280 times

Last updated: Aug 14 '18