How can i connect to simulation job using ros_bridge?

0

We have a web app which we are using to show details of robot on including video, position and feeds like lidar feed.

We are using http://wiki.ros.org/rosbridge_suite Rosbridge for this successfully on our development systems using gazebo simulations.

How can I do the same using simulation jobs on robomaker? How can I connect to simulation job using my dev system?

ruchit
asked 5 years ago258 views
1 Answer
0

Hi ruchit,

You can configure a VPC for your simulation job which enables out bound network access to your VPC from the simulation host.

https://docs.aws.amazon.com/robomaker/latest/dg/vpc.html

Currently, we don’t allow inbound network traffic to the simulation host.

One solution for communicating with your ROS code in simulation using rosbridge is to run rosbridge in the simulation host as part of the simulation or robot applications and opening a reverse SSH tunnel from the simulation host to an EC2 host in your VPC.

You can run rosbridge modifying your package.xml and launch file.

  1. Add a dependency on rosbridge_suite to your package.xml:
<depend>rosbridge_suite</depend
>```

2) Add the following to your .launch file: 

<include file="$(find rosbridge_server)/launch/rosbridge_websocket.launch" > <arg name="port" value="8080"/> </include >```

Lastly, you can modify your launch file to open a reverse tunnel to an EC2 host in your VPC. Once this is established you can communicate with rosbridge from your EC2 host. Note: you’ll need to include ssh as a dependency like we did for rosbridge_suite above.

A non-rosbridge option for connecting to the simulation from your dev system is a pub/sub mechanism like MQTT. The AWS IoT Bridge Example is a good example of this approach: https://github.com/aws-robotics/aws-iot-bridge-example/blob/master/README.md

AWS
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions