PX4 / px4_ros_com

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

Could not compile micrortps_agent #168

Open laylow13 opened 1 year ago

laylow13 commented 1 year ago

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

JetJie commented 1 year ago

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.

ripdk12 commented 1 year ago

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

TSC21 commented 1 year ago

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

berndpfrommer commented 1 year ago

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?

dagar commented 1 year ago

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.

berndpfrommer commented 1 year ago

@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.

dagar commented 1 year ago

@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.