PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.6k stars 13.56k forks source link

[Bug] ERROR [param] Parameter UXRCE_DDS_KEY not found. #21830

Open AlexWUrobot opened 1 year ago

AlexWUrobot commented 1 year ago

Describe the bug

Install the lastest MAVROS and PX4-autopilot in Ubuntu 18.04 (python 2.7) I tried two ubuntu 18.04 computers and both installed MAVROS and make PX4-autopilot successfully. However, get the error when running roslaunch px4 mavros_posix_sitl.launch

How to replicate

after running DONT_RUN=1 make px4_sitl_default gazebo-classic. In one of two PC, I get the below screenshot and I am not sure whether it completed make. image The other PC, it shows the good catkin make successfully like this: image

Then source

source Tools/simulation/gazebo-classic/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/simulation/gazebo-classic/sitl_gazebo-classic

Last, running roslaunch px4 mavros_posix_sitl.launch Two computer show the same below error. image image

... logging to /home/lifan/.ros/log/49ae3260-1fb1-11ee-825f-00e04c881200/roslaunch-lifan-OptiPlex-5060-20982.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

SUMMARY

CLEAR PARAMETERS

PARAMETERS

NODES / gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) mavros (mavros/mavros_node) sitl (px4/px4) vehicle_spawn_lifan_OptiPlex_5060_20982_1997743999047353810 (gazebo_ros/spawn_model)

auto-starting new master process[master]: started with pid [20992] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 49ae3260-1fb1-11ee-825f-00e04c881200 process[rosout-1]: started with pid [21003] started core service [/rosout] process[sitl-2]: started with pid [21011]


| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/

px4 starting.

INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0 INFO [init] found model autostart file as SYS_AUTOSTART=10015 process[gazebo-3]: started with pid [21024] INFO [param] selected parameter default file parameters.bson INFO [param] importing from 'parameters.bson' INFO [parameters] BSON document size 445 bytes, decoded 445 bytes (INT32:16, FLOAT:6) INFO [param] selected parameter backup file parameters_backup.bson process[gazebo_gui-4]: started with pid [21037] SYS_AUTOCONFIG: curr: 0 -> new: 1 process[vehicle_spawn_lifan_OptiPlex_5060_20982_1997743999047353810-5]: started with pid [21049] ERROR [param] Parameter UXRCE_DDS_KEY not found.

To Reproduce

git clone https://github.com/PX4/PX4-Autopilot.git --recursive
ref

cd <PX4-Autopilot_clone>
DONT_RUN=1 make px4_sitl_default gazebo-classic
source ~/catkin_ws/devel/setup.bash    # (optional)
source Tools/simulation/gazebo-classic/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/simulation/gazebo-classic/sitl_gazebo-classic
roslaunch px4 posix_sitl.launch

ref

Expected behavior

There is no ERROR [param] Parameter UXRCE_DDS_KEY not found.

Screenshot / Media

No response

Flight Log

no log

Software Version

Gazebo simulation

Flight controller

simulation

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

Thanks for your help

Shirleycoder commented 2 months ago

Have you found a solution yet? I have the same problem.