PX4 / PX4-Autopilot

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

Cannot obtain logs for multi-vehicle SITL simulation #10692

Closed JadWehbeh closed 5 years ago

JadWehbeh commented 6 years ago

.ulg files cannot be found after enabling logging for a single vehicle as part of a multi-vehicle simulation. Logger states it has started a log file, opened it, written a certain number of bytes to it, and closed it, but the file cannot be found anywhere.

I am using the multi_uav_mavros_sitl.launch file modified to pass 'true' to the 'enable_logging' parameter on iris_base.xacro for a single iris. The mission run for the logs below only arms the iris with logging enabled and simply has it take off then land in offboard mode.

Logs ... logging to /home/jadw/.ros/log/0ad67f18-d090-11e8-9aa2-f8da0c37640f/roslaunch-Phantasus-14360.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

xacro: in-order processing became default in ROS Melodic. You can drop the option. xacro: in-order processing became default in ROS Melodic. You can drop the option. xacro: in-order processing became default in ROS Melodic. You can drop the option. started roslaunch server http://Phantasus:38297/

SUMMARY

CLEAR PARAMETERS

PARAMETERS

NODES /uav1/ iris_1_spawn (gazebo_ros/spawn_model) leader_node (collab_transport/leader_node.py) mavros (mavros/mavros_node) sitl_1 (px4/px4) waypoint_publisher (collab_transport/waypoint_publisher.py) /uav2/ iris_2_spawn (gazebo_ros/spawn_model) mavros (mavros/mavros_node) sitl_2 (px4/px4) / gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) /uav3/ iris_3_spawn (gazebo_ros/spawn_model) mavros (mavros/mavros_node) sitl_3 (px4/px4)

ROS_MASTER_URI=http://localhost:11311

process[gazebo-1]: started with pid [14385] process[gazebo_gui-2]: started with pid [14390] process[uav1/sitl_1-3]: started with pid [14431] INFO [Unknown] Creating symlink /home/jadw/robotics/Firmware/ROMFS/px4fmu_common -> /home/jadw/.ros/etc 71 WARNING: setRealtimeSched failed (not run as root?)


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

px4 starting.

INFO [Unknown] Calling startup script: /bin/sh etc/init.d-posix/rcS 1 process[uav1/iris_1_spawn-4]: started with pid [14444] process[uav1/mavros-5]: started with pid [14451] [ INFO] [1539656349.051248826]: FCU URL: udp://:14541@localhost:14581 INFO [dataman] Unknown restart, data manager file './dataman' size is 11405132 bytes [ INFO] [1539656349.052748762]: udp0: Bind address: 0.0.0.0:14541 [ INFO] [1539656349.052841743]: udp0: Remote address: 127.0.0.1:14581 [ INFO] [1539656349.052920405]: GCS bridge disabled INFO [simulator] Waiting for initial data on UDP port 14561. Please start the flight simulator to proceed.. [ INFO] [1539656349.062217364]: Plugin 3dr_radio loaded [ INFO] [1539656349.063462938]: Plugin 3dr_radio initialized [ INFO] [1539656349.063540483]: Plugin actuator_control loaded [ INFO] [1539656349.065678814]: Plugin actuator_control initialized [ INFO] [1539656349.068343358]: Plugin adsb loaded [ INFO] [1539656349.070707718]: Plugin adsb initialized [ INFO] [1539656349.070809683]: Plugin altitude loaded [ INFO] [1539656349.071549992]: Plugin altitude initialized [ INFO] [1539656349.071611106]: Plugin cam_imu_sync loaded [ INFO] [1539656349.072011104]: Plugin cam_imu_sync initialized [ INFO] [1539656349.072077681]: Plugin command loaded [ INFO] [1539656349.075132226]: Plugin command initialized [ INFO] [1539656349.075212390]: Plugin debug_value loaded [ INFO] [1539656349.078420923]: Plugin debug_value initialized [ INFO] [1539656349.078458317]: Plugin distance_sensor blacklisted [ INFO] [1539656349.079292912]: Plugin encapsulated_data loaded [ INFO] [1539656349.081772315]: Plugin encapsulated_data initialized [ INFO] [1539656349.081888860]: Plugin fake_gps loaded [ INFO] [1539656349.089927940]: Plugin fake_gps initialized [ INFO] [1539656349.090040562]: Plugin ftp loaded [ INFO] [1539656349.094155467]: Plugin ftp initialized [ INFO] [1539656349.094265294]: Plugin global_position loaded process[uav2/sitl_2-6]: started with pid [14507] INFO [Unknown] Creating symlink /home/jadw/robotics/Firmware/ROMFS/px4fmu_common -> /home/jadw/.ros/etc 54 WARNING: setRealtimeSched failed (not run as root?)


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

px4 starting.

INFO [Unknown] Calling startup script: /bin/sh etc/init.d-posix/rcS 2 [ INFO] [1539656349.106034933]: Plugin global_position initialized [ INFO] [1539656349.106140242]: Plugin gps_rtk loaded process[uav2/iris_2_spawn-7]: started with pid [14521] [ INFO] [1539656349.107766530]: Plugin gps_rtk initialized [ INFO] [1539656349.107878982]: Plugin hil loaded process[uav2/mavros-8]: started with pid [14527] [ INFO] [1539656349.117273734]: Plugin hil initialized [ INFO] [1539656349.117385031]: Plugin home_position loaded [ INFO] [1539656349.121398654]: Plugin home_position initialized [ INFO] [1539656349.121522028]: Plugin imu loaded [ INFO] [1539656349.130536316]: Plugin imu initialized [ INFO] [1539656349.130673303]: Plugin local_position loaded


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

px4 starting.

INFO [Unknown] Calling startup script: /bin/sh etc/init.d-posix/rcS 3 [ INFO] [1539656349.278209695]: Plugin waypoint initialized [ INFO] [1539656349.278407079]: Plugin wind_estimation loaded [ INFO] [1539656349.279665889]: Plugin wind_estimation initialized [ INFO] [1539656349.279789562]: Autostarting mavlink via USB on PX4 [ INFO] [1539656349.279887764]: Built-in SIMD instructions: SSE, SSE2 [ INFO] [1539656349.279971679]: Built-in MAVLink package version: 2018.9.17 [ INFO] [1539656349.280052744]: Known MAVLink dialects: common ardupilotmega ASLUAV autoquad icarous matrixpilot paparazzi slugs standard uAvionix ualberta [ INFO] [1539656349.280132747]: MAVROS started. MY ID 1.240, TARGET ID 2.1 [ INFO] [1539656349.283128956]: Plugin ftp initialized [ INFO] [1539656349.283250822]: Plugin global_position loaded process[uav3/iris_3_spawn-10]: started with pid [14631] process[uav3/mavros-11]: started with pid [14633] process[uav1/leader_node-12]: started with pid [14644] process[uav1/waypoint_publisher-13]: started with pid [14646] [ INFO] [1539656349.304289221]: Plugin global_position initialized [ INFO] [1539656349.304442251]: Plugin gps_rtk loaded [ INFO] [1539656349.311947445]: Plugin gps_rtk initialized [ INFO] [1539656349.312103876]: Plugin hil loaded

Additional context I do not know if this is related, but I also do not have a fs/ directory under build/posix_sitl_default/tmp/rootfs/ The simulation was run using ROS Melodic and Gazebo 9.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

Closing as stale.