I bought PS4 controller and I installed ROS Joy package and I am following the instruction here - https://github.com/chrippa/ds4drv and http://wiki.ros.org/joy/Tutorials/ConfiguringALinuxJoystick
“rostopic echo /joy" works well...but Robot doesn't move..and "rostopic echo /cmd_vel" are blank when I push the joystick buttons.
vas@base:~$ rostopic list
/cmd_vel
/diagnostics
/imu/data
/imu/data_raw
/imu/mag
/imu/magnetic_field
/imu_filter_madgwick/
/imu_filter_madgwick/
/joy
/odom
/pid
/raw_imu
/raw_vel
/rosout
/rosout_agg
/tf
vas@base:~$
I am new to ROS, can you please suggest something? Your time and help would greatly be appreciated.
Thank you.
Vas.
May I know if you're running the PS4 controller wired or through Bluetooth connection? If so, this might help : http://answers.ros.org/question/240210/jackal-robot-ps4-remote-cannot-pair-using-bluetooth-with-the-robot/.
I believe PS4 controller should be supported. Please take note that joy ( http://wiki.ros.org/joy ) package must be run in parallel with teleop_twist_keyboard ( http://wiki.ros.org/teleop_twist_joy ) as it is subscribed to 'joy' topic.