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

[RTPS_READER_HISTORY Error] Gazebo & Error When Running offboard_control.py #53

Open
DrChanChan opened this issue Mar 20, 2025 · 4 comments

Comments

@DrChanChan
Copy link

Hi, thank you so much for sharing your code. I really appreciate your work!

However, I'm encountering an issue when running:

ros2 run px4_ros_com offboard_control.py

I get the following error:

Image

The drone just spins its propellers in place but does not take off in Gazebo.
I’ve already updated the version of px4_msgs to 1.15 to match the PX4 version I’m using, but the issue persists.
For reference, I’m using ROS2 Humble.
Any insights or suggestions would be greatly appreciated. Thanks in advance!

@beniaminopozzan
Copy link
Member

Hi @DrChanChan ,

I’ve already updated the version of px4_msgs to 1.15 to match the PX4 version I’m using, but the issue persists

Have you just checked out the branch release/1.15 or you manually copied the messages definition from PX4 v1.15 to the px4_msgs repo? I'm asking this because release/1.15 is slightly outdated and this may cause the issue.

Could you try again using #54 please?

@DrChanChan
Copy link
Author

Image

Thank you, the drone is up!

As you can see in the picture, there is still an [RTPS_READER_HISTORY Error]((88, 87) --> (220, 207)), but the drone itself seems to be moving, so that shouldn't be a problem.

If you still have any advice, please let me know! If you run into any problems along the way, do you mind if I post about it?

@beniaminopozzan
Copy link
Member

What version of ROS and MicroDDS Agent are you running and how did you compile the Agent?

@DrChanChan
Copy link
Author

Overall, I followed this PX4_1.15 guide : ("https://docs.px4.io/v1.15/en/ros2/user_guide.html#setup-micro-xrce-dds-agent-client")

  1. PX4_version : 1.15.4 ("git clone https://github.com/PX4/PX4-Autopilot.git --recursive")
  2. ROS2 version: ROS2_humble
  3. MicroDDS Agent version: 2.4.2 ("git clone -b 2.4.2 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git")
  4. compile agent: (If I understand correctly, are you referring to how to spawn the drone or the DDS Agent command?)

Drone : make px4_sitl gz_x500
Activate DDS Agent : MicroXRCEAgent udp4 -p 8888

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

2 participants