Controlling turtlebot3 in gazebo with android app in android emulator

asked 2018-10-12 03:33:46 -0600

Jeffy gravatar image

Hi to all.

I ve put in so many hours tryging to figure out how to control turtlebot3 in gazebo (turtlebot3_house.launch) using an app from android studio emulator. the app is downloaded from ( ). 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.

edit retag flag offensive close merge delete


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).

gvdhoorn gravatar image gvdhoorn  ( 2018-10-12 04:35:47 -0600 )edit

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?

Jeffy gravatar image Jeffy  ( 2018-10-12 04:44:12 -0600 )edit

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 and ROS_MASTER_URI have the correct value. Make sure there is bi-directional traffic flow possible between the host and the emulator. Etc.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-12 04:48:25 -0600 )edit

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 and ROS_MASTER_URI properly should do the job.

jubeira gravatar image jubeira  ( 2018-10-30 15:40:25 -0600 )edit