px4_ros_com icon indicating copy to clipboard operation
px4_ros_com copied to clipboard

Could not compile micrortps_agent

Open laylow13 opened this issue 2 years ago • 7 comments

The current version of the repository does not contain the compile options and source code of micrortps_agent and cannot compile micrortps_agent.

laylow13 avatar Nov 12 '22 07:11 laylow13

The current version of the repository does not contain the compile options and source code of micrortps_agent and cannot compile micrortps_agent.

yes, in the latest version, they have removed the rtps; now it is based microdds. I am also urgent to find a usable cpp offboard example.

JetJie avatar Nov 14 '22 17:11 JetJie

I am also having the same problem, please update the documentation which obviously is completely outdated now.

ripdk12 avatar Nov 15 '22 07:11 ripdk12

Please be patient as the documentation is already undergoing an update: https://github.com/PX4/PX4-user_guide/pull/2094

TSC21 avatar Nov 15 '22 07:11 TSC21

I have been using ROS2 for a while, also PX4 based controllers, but I am totally at a loss regarding the use of this repository. I cannot find any agent code. Something changed fundamentally. What is the last version that reasonably correlates with the documentation?

berndpfrommer avatar Dec 26 '22 20:12 berndpfrommer

I have been using ROS2 for a while, also PX4 based controllers, but I am totally at a loss regarding the use of this repository. I cannot find any agent code. Something changed fundamentally. What is the last version that reasonably correlates with the documentation?

@berndpfrommer with current PX4 main/development all you need to do is use the regular micro-ros-agent (snap, docker, etc) and all the typical PX4 builds have "microdds_client" included by default that bridges everything. Feel free to ping me on slack or discord if you have any questions. This all needs to be documented properly before the v1.14 stable release.

dagar avatar Dec 27 '22 00:12 dagar

@dagar Thanks for responding so quickly. It turns out for my platform (pixracer) the microdds_client is not built by default. That took me a while to figure out. For others struggling with this, you need to edit boards/px4/fmu-v4/default.px4board and add the following line: CONFIG_MODULES_MICRODDS_CLIENT=y.

Plus of course I had to switch off mavlink, switch on the microdds_client in QGroundControl. This post was very helpful.

berndpfrommer avatar Dec 27 '22 02:12 berndpfrommer

@dagar Thanks for responding so quickly. It turns out for my platform (pixracer) the microdds_client is not built by default. That took me a while to figure out. For others struggling with this, you need to edit boards/px4/fmu-v4/default.px4board and add the following line: CONFIG_MODULES_MICRODDS_CLIENT=y.

Plus of course I had to switch off mavlink, switch on the microdds_client in QGroundControl. This post was very helpful.

If it fits I'd like to squeeze it in everywhere we can by default and make this the norm going forward. There's quite a bit more integration coming that will build on this.

dagar avatar Dec 27 '22 02:12 dagar