Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
k1r4n123 opened this issue Dec 1, 2021 · 4 comments
Open

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

k1r4n123 opened this issue Dec 1, 2021 · 4 comments

Comments

@k1r4n123
Copy link

k1r4n123 commented Dec 1, 2021

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
Copy link
Author

k1r4n123 commented Dec 2, 2021

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:

  • Run the micrortps client like : micrortps_client start /dev/ttyACM0 -b 115200
  • Open another terminal and run: cat /dev/ttyACM0
  • Run the micrortps agent like: micrortps_agent -d /dev/ttyACM0 -b 115200 -v
  • Wait around 10 minutes for received messages to be accumulated in the agent

@singhlok
Copy link

singhlok commented Mar 6, 2022

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

@singhlok
Copy link

singhlok commented Mar 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants