PX4 / px4_ros_com

ROS2/ROS interface with PX4 through a Fast-RTPS bridge
http://px4.io
BSD 3-Clause "New" or "Revised" License
151 stars 173 forks source link

Micro-RTPS Agent does not recieve any data from Micro-RTPS Client #122

Open k1r4n123 opened 2 years ago

k1r4n123 commented 2 years ago

I am using the CUAV V5+ flight controller and running PX4 version v1.12.3 and px4_fmu-v5_rtps on it. I have connected the flight controller to my Ubuntu 20.04 laptop via the USB port and by the DSU7 debugging port using a serial-USB converter. I access the debugging port using the following command: screen /dev/ttyUSB0 57600 8N1.

Within the debugging port I start the MicroRTPS client as so:

Screenshot from 2021-12-01 11-51-00

And as you can see from the screenshot, I have ensured to stop all mavlink instances.

I start the MicroRTPS agent as so:

Screenshot from 2021-12-01 11-51-33

I am also running the Sensor Combined Listener and Vehicle GPS Position Listener available in the px4_ros_com package, as so:

Screenshot from 2021-12-01 11-51-59

Screenshot from 2021-12-01 11-52-14

I am expecting to see data being printed out in the Sensor Combined Listener and Vehicle GPS Position Listener applications, however I am not seeing anything. I am also not getting any errors or issues in the Micro RTPS Client or Agent.

GPS data and Sensor data are being outputted from the flight controller as confirmed in the screenshot below:

Screenshot from 2021-12-01 11-58-54

... And after doing sensors status

Screenshot from 2021-12-01 12-00-14

I then stop the MicroRTPS agent and find that it sends messages but does not receive any data:

Screenshot from 2021-12-01 12-48-26

So I am not sure why I am not seeing anything in Sensor Combined Listener and Vehicle GPS Position Listener. What am I doing wrong?

k1r4n123 commented 2 years ago

So now I have managed for the Agent to receive data however is there any way I can see what exactly are the messages it is receiving? Because it is receiving messages however, the Sensor Combined Listener and Vehicle GPS Position Listener applications are not receiving anything Screenshot from 2021-12-02 12-57-36 . The way I did this was:

singhlok commented 2 years ago

Hi,

I am facing the same issue. I can see that micrortps_agent is sending and receiving messages from micrortps_client.

However, Sensor Combined Listener is not displaying any.

Has this issue been resolved?

Thank you

senthilskm983 commented 2 years ago

https://discuss.px4.io/t/no-sensor-sensor-data-received-using-micrortps-client-agent-and-ros2/18756/4?u=sen.skm Hope this will help.

singhlok commented 2 years ago

https://discuss.px4.io/t/no-sensor-sensor-data-received-using-micrortps-client-agent-and-ros2/18756/4?u=sen.skm Hope this will help.

Thank you Senthil. I will give it a try later today