Controlling turtlebot3 in gazebo with android app in android emulator

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

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 ( https://github.com/rosandroid/android... ). 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

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

gvdhoorn gravatar imagegvdhoorn ( 2018-10-12 04:35:47 -0500 )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 imageJeffy ( 2018-10-12 04:44:12 -0500 )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 imagegvdhoorn ( 2018-10-12 04:48:25 -0500 )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 imagejubeira ( 2018-10-30 15:40:25 -0500 )edit