ROS-Mobile / ROS-Mobile-Android

Visualization and controlling application for Android
472 stars 150 forks source link

Joystick not working #66

Closed GodMiu-6789 closed 1 year ago

GodMiu-6789 commented 3 years ago

Dear team, I just installed the app on my android emulator (android 5.1). I am using raspberry pi running on Ubuntu 18.04 (supported by ros melodic). I am trying to use joystick to teleop my robot .However, after successfully connecting the app with my pi (I can do rostopic list and i see /cmd_vel ), the joystick seems not to publish any Twist msg (I echo /cmd_vel). Can anyone help me please ? I really appreciate it ! Regards, GodMiu

NRottmann commented 3 years ago

Is the joystick registered to the /cmd_vel topic? Thus, if you typing

rostopic info /cmd_vel

does the joystick node appear as publisher? If so and when no messages are poblic, make first sure that all ROS network parameters are set probably.

GodMiu-6789 commented 3 years ago

I also want to add that I did set the Master Url and the right port.

GodMiu-6789 commented 3 years ago

Dear NRottmann, Thank you for your response! Yes I did rostopic info /cmd_vel and there is a node called /cmd_vel shown as a publisher. I guess that is what you meant by joystick node. Can you explain more on what should be the network parameters to be set. I Regards, GodMiu

GodMiu-6789 commented 3 years ago

image To make it more clear, this the what I set in the app

GodMiu-6789 commented 3 years ago

image This is what I see in terminal.

NRottmann commented 3 years ago

The network parameter settings are explained here https://github.com/ROS-Mobile/ROS-Mobile-Android/wiki/FAQ

amjack0 commented 2 years ago

May be try, deleting the Joystick widget and add again. This worked for me !

GodMiu-6789 commented 2 years ago

Thanks man, I have completed my project for 8 months with a high mark. Btw, thank you for ur recommendation!