Ask Your Question
0

Get js0 data without joy publishing

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

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

Comments

1

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 -0500 )edit
1

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 -0500 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 138 times

Last updated: Aug 14 '18