-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Pixhawk v6c Micro DDS Client don't connect with Micro XRCE Agent using serial port and ROS2 tutorial #21393
Comments
Hey @RPS98 the microdds feature is only available for v1.14 and above, please try again with the v1.14-beta2 release tag |
Hi, thanks for the response. I have tried it and the same error happens. The microdds_client log change to:
Have to launch the Agent in the computer and then connect the port, otherwise the following error happens:
Don`t know if may be a problem. Also, I have tried to set XRCE_DDS_0_CFG param to TELEM2, to auto-initialize, but it doesn`t stored after reboot. |
Hi @RPS98
Could you explain it a bit more? First of all, in your first message you used
Could you try on a fresh beta2 firmware (I mean literally with all parameters initialized to the default values) to run again microdds_client start -t serial -d /dev/ttyS3 -b 921600 If it does not work, could you try the same procedure on beta1?
That is concerning. Are you sure there is no other module (like mavlink) that is using TELEM2 ? |
Sorry, I didn't check Mavlink was using Telem1 and Telem2. Thank you. It is also referred to issue #20634. I hope a working version of v1.14 will be released soon. Maybe, ROS2 documentation should say v1.13 don't support microdds (It's a bit confusing: https://github.com/PX4/PX4-user_guide/blob/228144bfabe5eb311c46c9cb79d2c2275aabdff0/en/ros/ros2_comm.md?plain=1#L8) Describe the bugI have already these problems, but they may be in another issues/questions: Using v1.14.0-beta2 branch, I have these issues:
To ReproduceSteps to reproduce the behavior:
Log Files and ScreenshotsWhen launch microdds client on PX4 v6c board, the following output show up:
If I connect TELEM 3 to the PC using another USB cable, and then launch Micro XRCE Agent on computer, the following output show up:
So, I have to launch first Micro XRCE Agent and then connect the port. The following output show up:
Drone
|
@RPS98 , I do not have Pixhawk 6c board but I tested everything on a CUAV Pixhawk 6X. I tried all the possible combination of:
and all the combinations worked without any problem:
I used -- Please check again
Do you have any other serial port on the PX4 that are used? |
Hi @mrpollo and @beniaminopozzan , finally the problem is solved. I couldn't set TELEM3 baudrate (param SER_TEL3_BAUD does not appear in QGroundControl). Finally, I disabled MAVLink stream on TELEM2 and I enabled Micro XRCE-DDS on TELEM2 (and then change it baudrate to 921600), and it works fine, starting at boot. Then, the Micro XRCE-DDS Agent problem was that QGroundControl was using TELEM2 too, so as Micro DDS Client was launch on boot, I could connect the Agent without usign QGroundControl. Thank you very much for your help. |
Glad you got it working. |
Hi @beniaminopozzan, are you getting also problems with sensor calibration on Pixhawk 6X with main or v1.14-beta2? Ive flashed today the board one more time with main, and even a problem with Crash Dump on SD came, when I moved the flight controller. But then I went back to v1.13.2 and the problems were gone. |
Hi @gustavotbarros , please open a new issue or a topic in the forum so we don't go offtopic here. |
Hi @beniaminopozzan, i need some help with this topic, how can i connect my computer with MicroXRCEAgent to my drone, that is equipped with pixhawk 6c and i made the connection with computer to drone with esp32. I use gazebo normaly but when i try to connect with MicroXRCE that not conect. Is there any configuration that i need to made in esp32 or pixhawk? |
Describe the bug
I have tried to follow ROS 2 Offboard Control Example, using Pixhawk v6c board connected by serial port. Micro DDS Client launched in px4 board and Micro XRCE Agent launched on computer doesn't connect. I have tried both PX4 Autopilot v1.13.3 and latest main branch.
It works on Gazebo Classic Simulation. I am using Ubuntu 22.04.2 LTS with ROS 2 Humble.
To Reproduce
Steps to reproduce the behavior:
1.1. Install ROS 2 Humble
1.2. Build PX4-msgs and PX4-ros-com
1.3. Build Micro XRCE DDS Agent in ROS within ROS 2 Workspace
Expected behavior
A similar output where computer Micro XRCE Agent connect to PX4 Micro DDS Client and creates ROS2 publishers/subscribers.
Log Files and Screenshots
When launch microdds client on PX4 v6c board, the following output show up:
And when launch Micro XRCE Agent on computer, the following output show up:
Drone
The text was updated successfully, but these errors were encountered: