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.
The other PC, it shows the good catkin make successfully like this:
Last, running roslaunch px4 mavros_posix_sitl.launch
Two computer show the same below error.
... 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.
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]
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.
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. The other PC, it shows the good catkin make successfully like this:Then source
Last, running
roslaunch px4 mavros_posix_sitl.launch
Two computer show the same below error.... 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.
INFO [logger] Opened full log file: ./log/2023-07-11/06_0802.ulg INFO [mavlink] MAVLink only on localhost (set param MAV{i}BROADCAST = 1 to enable network) INFO [mavlink] MAVLink only on localhost (set param MAV{i}_BROADCAST = 1 to enable network) INFO [px4] Startup script returned successfully pxh> INFO [mavlink] partner IP: 127.0.0.1 INFO [tone_alarm] home set [ INFO] [1689055683.333941629, 1.332000000]: CON: Got HEARTBEAT, connected. FCU: PX4 Autopilot [ INFO] [1689055683.337590799, 1.332000000]: IMU: High resolution IMU detected! [ INFO] [1689055684.217927928, 2.216000000]: IMU: Attitude quaternion IMU detected! [ INFO] [1689055684.345940772, 2.344000000]: GF: Using MISSION_ITEM_INT [ INFO] [1689055684.346085373, 2.344000000]: RP: Using MISSION_ITEM_INT [ INFO] [1689055684.346158659, 2.344000000]: WP: Using MISSION_ITEM_INT [ INFO] [1689055684.346272115, 2.344000000]: VER: 1.1: Capabilities 0x000000000000ecff [ INFO] [1689055684.346386831, 2.344000000]: VER: 1.1: Flight software: 010e0080 (02ab5e0704000000) [ INFO] [1689055684.346462988, 2.344000000]: VER: 1.1: Middleware software: 010e0080 (02ab5e0704000000) [ INFO] [1689055684.346520277, 2.344000000]: VER: 1.1: OS software: 050400ff (3f77354c0dc88793) [ INFO] [1689055684.346619401, 2.344000000]: VER: 1.1: Board hardware: 00000001 [ INFO] [1689055684.346699657, 2.344000000]: VER: 1.1: VID/PID: 0000:0000 [ INFO] [1689055684.346801799, 2.344000000]: VER: 1.1: UID: 4954414c44494e4f INFO [commander] Ready for takeoff! [ INFO] [1689055698.355794849, 16.332000000]: GF: mission received [ INFO] [1689055698.356003161, 16.332000000]: WP: mission received [ INFO] [1689055698.356128248, 16.332000000]: RP: mission received INFO [mavlink] partner IP: 127.0.0.1 INFO [commander] Armed by external command INFO [tone_alarm] arming warning INFO [commander] Takeoff detected
To Reproduce
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
ref
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