inorbit-ai / vda5050_adapter_examples

BSD 3-Clause "New" or "Revised" License
13 stars 12 forks source link

Running without Docker #10

Closed ainhoaarnaiz closed 1 year ago

ainhoaarnaiz commented 1 year ago

Hi,

I have tried to run it without Docker, but this is the output I get:

Screenshot from 2023-03-22 12-47-55 Screenshot from 2023-03-22 12-59-11 Screenshot from 2023-03-22 12-48-30 Screenshot from 2023-03-22 12-51-14

The topics are getting published on ROS2 but not on MQTT. Apparently, is not connecting to the MQTT broker.

Steps to follow: Ubuntu 22.04 ROS2 Humble

Packages in workspace: Screenshot from 2023-03-22 12-52-11

Execution:

I manually set the initial pose of the TurtleBot 3

Screenshot from 2023-03-22 12-49-34 Screenshot from 2023-03-22 12-49-41

However, if I just run: ros2 launch vda5050_connector mqtt_bridge.launch.py, this happens:

Screenshot from 2023-03-22 12-53-14 Screenshot from 2023-03-22 13-08-55

Any clue? Thank you very much!

leandropineda commented 1 year ago

Hi!

I think it's just a configuration issue. The example is docker based so by default it will try to reach the MQTT broker by using mosquitto hostname instead of localhost: https://github.com/inorbit-ai/vda5050_adapter_examples/blob/galactic-devel/vda5050_tb3_adapter/config/connector_tb3.yaml#L3.

When you launch it from the mqtt_bridge launch file it uses localhost instead: https://github.com/inorbit-ai/ros_amr_interop/blob/humble-devel/vda5050_connector/config/connector_example.yaml#L3.

ainhoaarnaiz commented 1 year ago

Hi! Thank you, that worked perfectly!