Controlling turtlebot3 in gazebo with android app in android emulator
Hi to all.
I ve put in so many hours tryging to figure out how to control turtlebot3 in gazebo (turtlebot3house.launch) using an app from android studio emulator. the app is downloaded from (https://github.com/rosandroid/androidteleop/blob/master/src/ros/android/teleop/Teleop.java). but no success.
however, it works fine when I run the app on my tablet (samsung tablet).
is there a way i can feed commands to gazebo simulator from the android studio emulator?
any help will be appreciated.
Asked by Jeffy on 2018-10-12 03:33:46 UTC
Comments
I sympathise with you, but from your own description things seem to work when not using the emulator. That would imply that it's the configuration of the emulator that is the problem here, not the rest of the infrastructure (ie: involved ROS nodes, etc).
Asked by gvdhoorn on 2018-10-12 04:35:47 UTC
I concur with you, gvdhoorn. I ve searched thru so many sites in an effort to get the emulator environment identical to that of physical tablet which was proven to work okay.
Do you have any idea how to get the emulator configuration set to communicate between the emulator and the gazebo?
Asked by Jeffy on 2018-10-12 04:44:12 UTC
It's most likely an issue with the network setup of the emulator. Treat it as a regular multi-pc ROS setup. Make sure things like
ROS_IP
andROS_MASTER_URI
have the correct value. Make sure there is bi-directional traffic flow possible between the host and the emulator. Etc.Asked by gvdhoorn on 2018-10-12 04:48:25 UTC
I agree with @gvdhoorn. I would add one more thing: try to ensure that the emulator is in the same network, allowing it to access the "outside world". Then, setting
ROS_IP
andROS_MASTER_URI
properly should do the job.Asked by jubeira on 2018-10-30 15:40:25 UTC