Closed Z123-Y456 closed 1 year ago
Hi,
This is the first error I can see in the output:
CMake Error at CMakeLists.txt:516 (install): install FILES given directory "/home/a/PX4/PX4-Autopilot/Tools/sitl_gazebo/worlds/hcaa_pylon_setup" to install.
Looks like it has something to do with the custom environment that gets installed. But it should not try to install that file as a world, but as a model intead. Did you run the install script from this repository?
Did you change any of the files after cloning this repository?
Can you check if /home/a/PX4/PX4-Autopilot/Tools/sitl_gazebo/worlds/hca_full_pylon_setup.world
exists?
Can you still run the simulation without a world, like so:
make px4_sitl_rtps gazebo_iris
Hi,
Thanks for your reply. When I try install.sh
again and make px4_sitl_rtps gazebo_iris__hca_full_pylon_setup
, that error disappeared. The gazebo can be started with some errors, this is the output of the errors:
pxh> INFO [tone_alarm] home set
INFO [tone_alarm] notify negative
TIFFFieldWithTag: Internal error, unknown tag 0x829a.
TIFFFieldWithTag: Internal error, unknown tag 0x829d.
TIFFFieldWithTag: Internal error, unknown tag 0x8822.
TIFFFieldWithTag: Internal error, unknown tag 0x8824.
TIFFFieldWithTag: Internal error, unknown tag 0x8827.
TIFFFieldWithTag: Internal error, unknown tag 0x8828.
TIFFFieldWithTag: Internal error, unknown tag 0x9000.
TIFFFieldWithTag: Internal error, unknown tag 0x9003.
TIFFFieldWithTag: Internal error, unknown tag 0x9004.
TIFFFieldWithTag: Internal error, unknown tag 0x9101.
TIFFFieldWithTag: Internal error, unknown tag 0x9102.
TIFFFieldWithTag: Internal error, unknown tag 0x9201.
TIFFFieldWithTag: Internal error, unknown tag 0x9202.
TIFFFieldWithTag: Internal error, unknown tag 0x9203.
TIFFFieldWithTag: Internal error, unknown tag 0x9204.
TIFFFieldWithTag: Internal error, unknown tag 0x9205.
TIFFFieldWithTag: Internal error, unknown tag 0x9206.
TIFFFieldWithTag: Internal error, unknown tag 0x9207.
TIFFFieldWithTag: Internal error, unknown tag 0x9208.
TIFFFieldWithTag: Internal error, unknown tag 0x9209.
TIFFFieldWithTag: Internal error, unknown tag 0x920a.
TIFFFieldWithTag: Internal error, unknown tag 0x9214.
TIFFFieldWithTag: Internal error, unknown tag 0x927c.
TIFFFieldWithTag: Internal error, unknown tag 0x9286.
TIFFFieldWithTag: Internal error, unknown tag 0x9290.
TIFFFieldWithTag: Internal error, unknown tag 0x9291.
TIFFFieldWithTag: Internal error, unknown tag 0x9292.
TIFFFieldWithTag: Internal error, unknown tag 0xa000.
TIFFFieldWithTag: Internal error, unknown tag 0xa001.
TIFFFieldWithTag: Internal error, unknown tag 0xa002.
TIFFFieldWithTag: Internal error, unknown tag 0xa003.
TIFFFieldWithTag: Internal error, unknown tag 0xa004.
TIFFFieldWithTag: Internal error, unknown tag 0xa20b.
TIFFFieldWithTag: Internal error, unknown tag 0xa20c.
TIFFFieldWithTag: Internal error, unknown tag 0xa20e.
TIFFFieldWithTag: Internal error, unknown tag 0xa20f.
TIFFFieldWithTag: Internal error, unknown tag 0xa210.
TIFFFieldWithTag: Internal error, unknown tag 0xa214.
TIFFFieldWithTag: Internal error, unknown tag 0xa215.
TIFFFieldWithTag: Internal error, unknown tag 0xa217.
TIFFFieldWithTag: Internal error, unknown tag 0xa300.
TIFFFieldWithTag: Internal error, unknown tag 0xa301.
TIFFFieldWithTag: Internal error, unknown tag 0xa302.
TIFFFieldWithTag: Internal error, unknown tag 0xa401.
TIFFFieldWithTag: Internal error, unknown tag 0xa402.
TIFFFieldWithTag: Internal error, unknown tag 0xa403.
TIFFFieldWithTag: Internal error, unknown tag 0xa404.
TIFFFieldWithTag: Internal error, unknown tag 0xa405.
TIFFFieldWithTag: Internal error, unknown tag 0xa406.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa408.
TIFFFieldWithTag: Internal error, unknown tag 0xa409.
TIFFFieldWithTag: Internal error, unknown tag 0xa40a.
TIFFFieldWithTag: Internal error, unknown tag 0xa40b.
TIFFFieldWithTag: Internal error, unknown tag 0xa40c.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa420
I can see the screen of gazebo that some places are incomplete. Additionally, I cannot open the linkhttps://gitlab.drones4energy.dk/obs/Drones4Energy_SDU_Only_code/-/tree/iROS2021/Tools/simulationAssets.
I am very grateful for this project. It very detailed and I have learned a lot as a novice. If I have some code content that I don't understand, can I ask you? Thank you very mush!
Hi,
I am not sure where those errors come from; I get them as well but have not experienced any issues with the simulation because of them.
How can you see that some places are incomplete? Could you post a screenshot here? It should look similar to this: https://raw.githubusercontent.com/nhma20/mmWave_ROS2_PX4_Gazebo/main/Pictures/Screenshot_from_2021-07-06_09-54-53.png
Which branch of the repository are you using? If you use the default branch (18OCT2022) you should not need the additional files from that link since the needed files will automatically download and install when you run the install.sh
script.
I am glad you find it useful, and you are of course welcome to ask questions regarding the code.
Yes, I used the default branch(18OCT2022) and I have run the install.sh
.
The screenshot is
And the all output is
[0/4] Performing build step for 'sitl_gazebo'
ninja: no work to do.
[3/4] cd /home/a/PX4/PX4-Autopilot/bui.../PX4/PX4-Autopilot/build/px4_sitl_rtps
SITL ARGS
sitl_bin: /home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps/bin/px4
debugger: none
program: gazebo
model: iris
world: hca_full_pylon_setup
src_path: /home/a/PX4/PX4-Autopilot
build_path: /home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps
GAZEBO_PLUGIN_PATH :/home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps/build_gazebo
GAZEBO_MODEL_PATH :/home/a/PX4/PX4-Autopilot/Tools/sitl_gazebo/models
LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:/home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps/build_gazebo
Using: /home/a/PX4/PX4-Autopilot/Tools/sitl_gazebo/models/iris/iris.sdf
[WARN] [1668255999.229203446] [rcl]: Found remap rule '~/out:=laser_scan'. This syntax is deprecated. Use '--ros-args --remap ~/out:=laser_scan' instead.
[WARN] [1668255999.231367521] [rcl]: Found remap rule '~/out:=laser_scan'. This syntax is deprecated. Use '--ros-args --remap ~/out:=laser_scan' instead.
[WARN] [1668255999.471062245] [rcl]: Found remap rule 'image_raw:=raw_img'. This syntax is deprecated. Use '--ros-args --remap image_raw:=raw_img' instead.
[WARN] [1668255999.471094163] [rcl]: Found remap rule 'camera_info:=info'. This syntax is deprecated. Use '--ros-args --remap camera_info:=info' instead.
[WARN] [1668255999.473094386] [rcl]: Found remap rule 'image_raw:=raw_img'. This syntax is deprecated. Use '--ros-args --remap image_raw:=raw_img' instead.
[WARN] [1668255999.473130076] [rcl]: Found remap rule 'camera_info:=info'. This syntax is deprecated. Use '--ros-args --remap camera_info:=info' instead.
[INFO] [1668255999.477805692] [plugin_name]: Publishing camera info to [/cable_camera/camera_info]
SITL COMMAND: "/home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps/bin/px4" "/home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps"/etc -s etc/init.d-posix/rcS -t "/home/a/PX4/PX4-Autopilot"/test_data
Creating symlink /home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps/etc -> /home/a/PX4/PX4-Autopilot/build/px4_sitl_rtps/tmp
_____ __ __ ___
| ___ \ \ \ / / / |
| |_/ / \ V / / /| |
| __/ / \ / /_| |
| | / /^\ \ \___ |
\_| \/ \/ |_/
px4 starting.
INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO [init] found model autostart file as SYS_AUTOSTART=10016
INFO [param] selected parameter default file eeprom/parameters_10016
INFO [parameters] BSON document size 291 bytes, decoded 291 bytes (INT32:12, FLOAT:3)
[param] Loaded: eeprom/parameters_10016
INFO [dataman] data manager file './dataman' size is 7866640 bytes
PX4 SIM HOST: localhost
INFO [simulator] Waiting for simulator to accept connection on TCP port 4560
INFO [simulator] Simulator connected on TCP port 4560.
Gazebo multi-robot simulator, version 11.12.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
INFO [commander] LED: open /dev/led0 failed (22)
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 10.16.74.120
INFO [init] Mixer: etc/mixers/quad_x.main.mix on /dev/pwm_output0
INFO [init] setting PWM_AUX_OUT none
TIFFFieldWithTag: Internal error, unknown tag 0x829a.
TIFFFieldWithTag: Internal error, unknown tag 0x829d.
TIFFFieldWithTag: Internal error, unknown tag 0x8822.
TIFFFieldWithTag: Internal error, unknown tag 0x8824.
TIFFFieldWithTag: Internal error, unknown tag 0x8827.
TIFFFieldWithTag: Internal error, unknown tag 0x8828.
TIFFFieldWithTag: Internal error, unknown tag 0x9000.
TIFFFieldWithTag: Internal error, unknown tag 0x9003.
TIFFFieldWithTag: Internal error, unknown tag 0x9004.
TIFFFieldWithTag: Internal error, unknown tag 0x9101.
TIFFFieldWithTag: Internal error, unknown tag 0x9102.
TIFFFieldWithTag: Internal error, unknown tag 0x9201.
TIFFFieldWithTag: Internal error, unknown tag 0x9202.
TIFFFieldWithTag: Internal error, unknown tag 0x9203.
TIFFFieldWithTag: Internal error, unknown tag 0x9204.
TIFFFieldWithTag: Internal error, unknown tag 0x9205.
TIFFFieldWithTag: Internal error, unknown tag 0x9206.
TIFFFieldWithTag: Internal error, unknown tag 0x9207.
TIFFFieldWithTag: Internal error, unknown tag 0x9208.
TIFFFieldWithTag: Internal error, unknown tag 0x9209.
TIFFFieldWithTag: Internal error, unknown tag 0x920a.
TIFFFieldWithTag: Internal error, unknown tag 0x9214.
TIFFFieldWithTag: Internal error, unknown tag 0x927c.
TIFFFieldWithTag: Internal error, unknown tag 0x9286.
TIFFFieldWithTag: Internal error, unknown tag 0x9290.
TIFFFieldWithTag: Internal error, unknown tag 0x9291.
TIFFFieldWithTag: Internal error, unknown tag 0x9292.
TIFFFieldWithTag: Internal error, unknown tag 0xa000.
TIFFFieldWithTag: Internal error, unknown tag 0xa001.
TIFFFieldWithTag: Internal error, unknown tag 0xa002.
TIFFFieldWithTag: Internal error, unknown tag 0xa003.
TIFFFieldWithTag: Internal error, unknown tag 0xa004.
TIFFFieldWithTag: Internal error, unknown tag 0xa20b.
TIFFFieldWithTag: Internal error, unknown tag 0xa20c.
TIFFFieldWithTag: Internal error, unknown tag 0xa20e.
TIFFFieldWithTag: Internal error, unknown tag 0xa20f.
TIFFFieldWithTag: Internal error, unknown tag 0xa210.
TIFFFieldWithTag: Internal error, unknown tag 0xa214.
TIFFFieldWithTag: Internal error, unknown tag 0xa215.
TIFFFieldWithTag: Internal error, unknown tag 0xa217.
TIFFFieldWithTag: Internal error, unknown tag 0xa300.
TIFFFieldWithTag: Internal error, unknown tag 0xa301.
TIFFFieldWithTag: Internal error, unknown tag 0xa302.
TIFFFieldWithTag: Internal error, unknown tag 0xa401.
TIFFFieldWithTag: Internal error, unknown tag 0xa402.
TIFFFieldWithTag: Internal error, unknown tag 0xa403.
TIFFFieldWithTag: Internal error, unknown tag 0xa404.
TIFFFieldWithTag: Internal error, unknown tag 0xa405.
TIFFFieldWithTag: Internal error, unknown tag 0xa406.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa408.
TIFFFieldWithTag: Internal error, unknown tag 0xa409.
TIFFFieldWithTag: Internal error, unknown tag 0xa40a.
TIFFFieldWithTag: Internal error, unknown tag 0xa40b.
TIFFFieldWithTag: Internal error, unknown tag 0xa40c.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa420.
INFO [micrortps_client] UDP transport: ip address: 127.0.0.1; recv port: 2019; send port: 2020
INFO [micrortps_client] UDP transport: Trying to connect...
INFO [micrortps_client] UDP transport: Connected to server!
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030
INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280
INFO [logger] logger started (mode=all)
INFO [logger] Start file log (type: full)
INFO [logger] [logger] ./log/2022-11-12/12_26_42.ulg
INFO [logger] Opened full log file: ./log/2022-11-12/12_26_42.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
WARN [PreFlightCheck] Manual control unavailable
INFO [tone_alarm] home set
INFO [tone_alarm] notify negative
TIFFFieldWithTag: Internal error, unknown tag 0x829a.
TIFFFieldWithTag: Internal error, unknown tag 0x829d.
TIFFFieldWithTag: Internal error, unknown tag 0x8822.
TIFFFieldWithTag: Internal error, unknown tag 0x8824.
TIFFFieldWithTag: Internal error, unknown tag 0x8827.
TIFFFieldWithTag: Internal error, unknown tag 0x8828.
TIFFFieldWithTag: Internal error, unknown tag 0x9000.
TIFFFieldWithTag: Internal error, unknown tag 0x9003.
TIFFFieldWithTag: Internal error, unknown tag 0x9004.
TIFFFieldWithTag: Internal error, unknown tag 0x9101.
TIFFFieldWithTag: Internal error, unknown tag 0x9102.
TIFFFieldWithTag: Internal error, unknown tag 0x9201.
TIFFFieldWithTag: Internal error, unknown tag 0x9202.
TIFFFieldWithTag: Internal error, unknown tag 0x9203.
TIFFFieldWithTag: Internal error, unknown tag 0x9204.
TIFFFieldWithTag: Internal error, unknown tag 0x9205.
TIFFFieldWithTag: Internal error, unknown tag 0x9206.
TIFFFieldWithTag: Internal error, unknown tag 0x9207.
TIFFFieldWithTag: Internal error, unknown tag 0x9208.
TIFFFieldWithTag: Internal error, unknown tag 0x9209.
TIFFFieldWithTag: Internal error, unknown tag 0x920a.
TIFFFieldWithTag: Internal error, unknown tag 0x9214.
TIFFFieldWithTag: Internal error, unknown tag 0x927c.
TIFFFieldWithTag: Internal error, unknown tag 0x9286.
TIFFFieldWithTag: Internal error, unknown tag 0x9290.
TIFFFieldWithTag: Internal error, unknown tag 0x9291.
TIFFFieldWithTag: Internal error, unknown tag 0x9292.
TIFFFieldWithTag: Internal error, unknown tag 0xa000.
TIFFFieldWithTag: Internal error, unknown tag 0xa001.
TIFFFieldWithTag: Internal error, unknown tag 0xa002.
TIFFFieldWithTag: Internal error, unknown tag 0xa003.
TIFFFieldWithTag: Internal error, unknown tag 0xa004.
TIFFFieldWithTag: Internal error, unknown tag 0xa20b.
TIFFFieldWithTag: Internal error, unknown tag 0xa20c.
TIFFFieldWithTag: Internal error, unknown tag 0xa20e.
TIFFFieldWithTag: Internal error, unknown tag 0xa20f.
TIFFFieldWithTag: Internal error, unknown tag 0xa210.
TIFFFieldWithTag: Internal error, unknown tag 0xa214.
TIFFFieldWithTag: Internal error, unknown tag 0xa215.
TIFFFieldWithTag: Internal error, unknown tag 0xa217.
TIFFFieldWithTag: Internal error, unknown tag 0xa300.
TIFFFieldWithTag: Internal error, unknown tag 0xa301.
TIFFFieldWithTag: Internal error, unknown tag 0xa302.
TIFFFieldWithTag: Internal error, unknown tag 0xa401.
TIFFFieldWithTag: Internal error, unknown tag 0xa402.
TIFFFieldWithTag: Internal error, unknown tag 0xa403.
TIFFFieldWithTag: Internal error, unknown tag 0xa404.
TIFFFieldWithTag: Internal error, unknown tag 0xa405.
TIFFFieldWithTag: Internal error, unknown tag 0xa406.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa408.
TIFFFieldWithTag: Internal error, unknown tag 0xa409.
TIFFFieldWithTag: Internal error, unknown tag 0xa40a.
TIFFFieldWithTag: Internal error, unknown tag 0xa40b.
TIFFFieldWithTag: Internal error, unknown tag 0xa40c.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa407.
TIFFFieldWithTag: Internal error, unknown tag 0xa420.
Looks to me like it is working then.
Can you succesfully run the microRTPS agent and ROS2 nodes? Can you fly the drone with QGroundControl?
I just left my working space. I will test them tomorrow, about 12 hours later. Then I will show you the results,it is ok? At last, I really appreciate your reply.
Sounds good
I just test it. It is working well. Thanks for your help.
I found that I have to add the plugin libgazebo_ros_camera.so
to PX4-Autopilot/build/px4_sitl_rtps/build_gazebo/
manually, maybe we can modify the PX4-Autopilot/Tools/sitl_gazebo/CMakeLists.txt
to fix it.
Then, how to add new worlds/models to ~/PX4-Autopilot/platforms/posix/cmake/sitl_target.cmake (Oscar's worlds/models from https://gitlab.drones4energy.dk/obs/Drones4Energy_SDU_Only_code/-/tree/iROS2021/Tools/simulationAssets). (It is in your README.md->MISC->14). I can not open this link. Do you have more information regarding add new worlds and models?
Great to hear that it works.
So the camera plugin did not work without you manually placing it in that folder? And from where did you get the libgazebo_ros_camera.so
file? When I run the instructions in this repository from the beginning, that file is automatically placed in the correct directory.
The models found at that link are the same ones that are automatically downladed and installed, it's the hca_full_pylon_setup
world files. The link should probably be removed to remove any misunderstanding.
If you want to add new worlds and models, you have to place them in ../PX4-Autopilot/Tools/sitl_gazebo/worlds
and ../PX4-Autopilot/Tools/sitl_gazebo/models
. Then you have to edit the ../mmWave_ROS2_PX4_Gazebo/cmake/sitl_targets_gazebo.cmake
and ../mmWave_ROS2_PX4_Gazebo/cmake/sitl_target.cmake
files to add the names of the new models and worlds (under set(models .. )
and set(worlds .. )
) and run this repository's install.sh
script again.
Thanks for your reply.
The camera plugin did not work before I place it in that folded. I copy the libgazebo_ros_camera.so
from /opt/ros/foxy/lib
. I found that the code of adding plugins in /PX4-Autopilot/Tools/sitl_gazebo/CMakeLists.txt
do not include 'gazebo_ros_camera_plugin'.
set(plugins
gazebo_airspeed_plugin
gazebo_camera_manager_plugin
gazebo_gps_plugin
gazebo_groundtruth_plugin
gazebo_irlock_plugin
gazebo_lidar_plugin
gazebo_opticalflow_mockup_plugin
gazebo_opticalflow_plugin
gazebo_sonar_plugin
gazebo_uuv_plugin
gazebo_vision_plugin
gazebo_controller_interface
gazebo_gimbal_controller_plugin
gazebo_imu_plugin
gazebo_mavlink_interface
gazebo_motor_model
gazebo_multirotor_base_plugin
gazebo_wind_plugin
gazebo_magnetometer_plugin
gazebo_barometer_plugin
gazebo_catapult_plugin
gazebo_usv_dynamics_plugin
gazebo_parachute_plugin
gazebo_airship_dynamics_plugin
gazebo_drop_plugin
)
Regarding how to add new worlds and models, what puzzle me is the '../mmWave_ROS2_PX4_Gazebo/cmake/sitl_target.cmake'. Because it is a new file, I do not know how it is called. Maybe I should learn more about cmake
.
I am not completely sure how the ros camera plugin is added. For me it seems to work without needing any extra steps. Did you try to add gazebo_ros_camera_plugin
to the CMakeLists.txt
file to see if it will add the libgazebo_ros_camera.so
that you were missing?
I do not know how to add this plugin to the CMakeLists.txt
. Because the plugins that have been added are created from ../PX4-Autopilot/Tools/sitl_gazebo/src
, the address of 'gazebo_ros_camera_plugin' is /opt/ros/foxy/lib
. What should I do if I want to add the plugin.
Some code of adding plugins is shown follow:
add_library(gazebo_airspeed_plugin SHARED src/gazebo_airspeed_plugin.cpp)
add_library(gazebo_camera_manager_plugin SHARED src/gazebo_camera_manager_plugin.cpp)
add_library(gazebo_gps_plugin SHARED src/gazebo_gps_plugin.cpp)
......
set(plugins
gazebo_airspeed_plugin
gazebo_camera_manager_plugin
gazebo_gps_plugin
......
)
As I mentioned before, I am not completely sure how plugins are added. If you figure it out, please mention it here for future reference.
Since your main issues seem to be resolved, I will close this issue. You are welcome to open a new issue if you have other issues.
Of course, the main issues are resolved. Thank you very much for your explanation.
When I start a PX4 Gazebo simulation using:
make px4_sitl_rtps gazebo_iris__hca_full_pylon_setup
, the failure is happened. The error message as follow:I don't know how to handle it. Below is the full output of this command: