-
Notifications
You must be signed in to change notification settings - Fork 136
Description
- Hardware description: Notebook HP 250 G8
- OS: Ubuntu 24.04.3 LTS "Noble" (WSL2) - Windows 11 24H2
- Version: v2.4.3
Hi,
following the steps in the PX4-ROS2 guide (https://docs.px4.io/main/en/ros2/user_guide) and starting the PX4 Autopilot and Gazebo server with the command HEADLESS=1 make px4_sitl gz_x500 the process terminates with the error
terminate called after throwing an instance of 'eprosima::fastcdr::exception::BadParamException'
what(): This member is not been selected
Copy and paste of the shell
ubuntu@GianlucaJS:~$ ls -lh
total 20K
drwxr-xr-x 14 ubuntu ubuntu 4.0K Oct 23 11:34 Micro-XRCE-DDS-Agent
drwxr-xr-x 24 ubuntu ubuntu 4.0K Oct 23 11:26 PX4-Autopilot
drwxr-xr-x 7 ubuntu ubuntu 4.0K Oct 19 10:54 px4_ros2_ws
ubuntu@GianlucaJS:~$ MicroXRCEAgent udp4 -p 8888
[1761214042.525159] info | UDPv4AgentLinux.cpp | init | running... | port: 8888
[1761214042.525776] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 4
[1761214044.516975] info | Root.cpp | create_client | create | client_key: 0x00000001, session_id: 0x81
[1761214044.517771] info | SessionManager.hpp | establish_session | session established | client_key: 0x00000001, address: 127.0.0.1:51491
[1761214044.636290] info | ProxyClient.cpp | create_participant | participant created | client_key: 0x00000001, participant_id: 0x001(1)
[1761214050.780335] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x00000001, topic_id: 0x800(2), participant_id: 0x001(1)
[1761214050.780951] info | ProxyClient.cpp | create_subscriber | subscriber created | client_key: 0x00000001, subscriber_id: 0x800(4), participant_id: 0x001(1)
terminate called after throwing an instance of 'eprosima::fastcdr::exception::BadParamException'
what(): This member is not been selected
Aborted (core dumped)
Instead, if I build and run inside a ROS2 Workspace following this guide (https://docs.px4.io/main/en/middleware/uxrce_dds#build-run-within-ros-2-workspace)
everything works well and the clients connects to the agent and I can receive the uORB messages and see the topics with ros2 topic list
How can I solve this problem using the 'Make installation' instead of using the 'Build and Run ROS2 Workspace installation'