Page 1 of 1

How to read Joystick in vrep child script dans Linux 16.04

Posted: 25 Jan 2019, 16:23
by miaohang
Hi there
I'm new to vrep , i have finished a six wheels robot simulation controlled by a Joystick in an environment Windows, which has a good performance. For reading the information of the Joystick, I have used axes,buttons,rotAxes,slider,pov=simJoy.getData(0) to read the information of the Joystick and
numberOfJoyticks=simJoy.getCount() to count the number of the Joystick
Now I'am going to use the same child script in Linux, I got an error for these two functions [simJoy.getData, simJoy.getCount]. I don't know what should I use for replacing these functions in Linux.

Further, I have installed the driver of the Joystick in Linux, I tested with jstest-gtk and it works.
Forgive my english...

Re: How to read Joystick in vrep child script dans Linux 16.04

Posted: 28 Jan 2019, 15:15
by coppelia
Hello,

unfortunately, the joystick plugin for V-REP is currently a Windows only project. One would have to write a Linux version, or you can use the ROS environment (also see here).

Cheers

Re: How to read Joystick in vrep child script dans Linux 16.04

Posted: 22 Mar 2019, 10:30
by fferri
Hello,

you can use this as a starting point: https://github.com/fferri/v_repExtSDL

It uses SDL2 to access the joystick device