Closed zillay-bot closed 3 years ago
I see a few things wrong. Please follow the readme precisely.
a. You cannot run catkin build
before you have pulled in all the dependencies using wstool init
b. I see you are running wstool init
in the wrong directory as the following.
~/catkin_ws$ wstool init . ./mavros_swarm/dependencies.rosinstall
The readme tells you to run it in a different directory as
cd ~/catkin_ws/src
wstool init . ./mavros_swarm/dependencies.rosinstall
wstool update -t src -j4
c. This is also not a valid way to pull in files
wget https://github.com/Jaeyoung-Lim/mavros_swarm.rosinstall
If you want to download the file, it is explained here how to do it. However, if you did a. and b. correctly this is not needed
its giving the following error after doing second step
wstool init https://github.com/Jaeyoung-Lim/mavros_swarm/dependencies.rosinstall
Traceback (most recent call last):
File "/usr/bin/wstool", line 62, in
@zillay-bot The readme does not tell you to run the command you are running.
Please follow the readme as the following
cd ~/catkin_ws/src
wstool init . ./mavros_swarm/dependencies.rosinstall
wstool update -t src -j4
i am really sorry but i am unable to understand as i am new to this all.
@zillay-bot This is the command that is written in the readme
wstool init . ./mavros_swarm/dependencies.rosinstall
This is the command you are running
wstool init https://github.com/Jaeyoung-Lim/mavros_swarm/dependencies.rosinstall
That is the reason it is not working for you
should i move to next step
~/catkin_ws/src$ wstool init . ./mavros_swarm/dependencies.rosinstall Error: There already is a workspace config file .rosinstall at ".". Use wstool install/modify.
yes.
If you want to know how to use rosinstall you can look at the documentation
~/catkin_ws/src$ wstool update -t src -j4 ERROR in config: /home/cactus/catkin_ws/src/src has no workspace configuration file '.rosinstall'
its not working
~/catkin_ws/src$ wstool update -t src -j4 ERROR in config: /home/cactus/catkin_ws/src/src has no workspace configuration file '.rosinstall'
its not working
Could you try this?
cd ~/catkin_ws
wstool init src
wstool merge -t src src/mavros_swarm/dependencies.rosinstall
wstool update -t src -j4
i worked and i ve build the catkin_ws but after running the launch file its giving error:
~$ roslaunch formation_control sitl_multiuav_swarm.launch ... logging to /home/cactus/.ros/log/a17d52d6-2bf5-11ea-aa82-e4029be100e1/roslaunch-cactus-Inspiron-5559-20436.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.
/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/loader.py:409: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. data = yaml.load(text) started roslaunch server http://cactus-Inspiron-5559:46370/
CLEAR PARAMETERS
PARAMETERS
NODES /uav1/ iris_1_spawn (gazebo_ros/spawn_model) mavros (mavros/mavros_node) sitl_1 (px4/px4) /uav0/ iris_0_spawn (gazebo_ros/spawn_model) mavros (mavros/mavros_node) sitl_0 (px4/px4) /uav2/ iris_2_spawn (gazebo_ros/spawn_model) mavros (mavros/mavros_node) sitl_2 (px4/px4) / formation_control_node (formation_control/formation_control_node) gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient)
auto-starting new master process[master]: started with pid [20455] ROS_MASTER_URI=http://localhost:11311
setting /run_id to a17d52d6-2bf5-11ea-aa82-e4029be100e1 process[rosout-1]: started with pid [20468] started core service [/rosout] process[formation_control_node-2]: started with pid [20488] process[gazebo-3]: started with pid [20489] process[gazebo_gui-4]: started with pid [20506] process[uav0/sitl_0-5]: started with pid [20606] INFO [px4] Creating symlink /home/cactus/Firmware/ROMFS/px4fmu_common -> /home/cactus/.ros/sitl_iris_0/etc
| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/
px4 starting.
INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0 0 WARNING: setRealtimeSched failed (not run as root?) process[uav0/iris_0_spawn-6]: started with pid [20625] process[uav0/mavros-7]: started with pid [20630] [ INFO] [1577814458.803323017]: Finished loading Gazebo ROS API Plugin. [ INFO] [1577814458.811487274]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... INFO [dataman] Unknown restart, data manager file './dataman' size is 11798680 bytes INFO [simulator] Waiting for simulator to connect on TCP port 4560 [ INFO] [1577814458.870701884]: FCU URL: udp://:14540@localhost:14580 [ INFO] [1577814458.874499677]: udp0: Bind address: 0.0.0.0:14540 [ INFO] [1577814458.874705440]: udp0: Remote address: 127.0.0.1:14580 [ INFO] [1577814458.875116134]: GCS bridge disabled [ INFO] [1577814458.898487558]: Plugin 3dr_radio loaded [ INFO] [1577814458.902399520]: Plugin 3dr_radio initialized [ INFO] [1577814458.902627953]: Plugin actuator_control loaded [ INFO] [1577814458.910492608]: Plugin actuator_control initialized [ INFO] [1577814458.917530555]: Plugin adsb loaded [ INFO] [1577814458.924760311]: Plugin adsb initialized [ INFO] [1577814458.925210024]: Plugin altitude loaded [ INFO] [1577814458.927947461]: Plugin altitude initialized [ INFO] [1577814458.928388933]: Plugin cam_imu_sync loaded [ INFO] [1577814458.930021960]: Plugin cam_imu_sync initialized [ INFO] [1577814458.930517916]: Plugin command loaded [ INFO] [1577814458.943614248]: Plugin command initialized [ INFO] [1577814458.943859125]: Plugin companion_process_status loaded [ INFO] [1577814458.954113954]: Plugin companion_process_status initialized [ INFO] [1577814458.954356384]: Plugin debug_value loaded INFO [px4] Creating symlink /home/cactus/Firmware/ROMFS/px4fmu_common -> /home/cactus/.ros/sitl_iris_1/etc 0 WARNING: setRealtimeSched failed (not run as root?)
| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/
px4 starting.
INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 1 process[uav1/sitl_1-8]: started with pid [20790] process[uav1/iris_1_spawn-9]: started with pid [20823] [ INFO] [1577814458.976000212]: Finished loading Gazebo ROS API Plugin. [ INFO] [1577814458.982327289]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... process[uav1/mavros-10]: started with pid [20839] [ INFO] [1577814458.983303678]: Plugin debug_value initialized [ INFO] [1577814458.983443395]: Plugin distance_sensor blacklisted [ INFO] [1577814458.983769073]: Plugin fake_gps loaded [ INFO] [1577814459.032613277]: Plugin fake_gps initialized [ INFO] [1577814459.033026714]: Plugin ftp loaded X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 153 (DRI2) Minor opcode of failed request: 3 (DRI2CreateDrawable) Resource id in failed request: 0x5a00002 Serial number of failed request: 31 Current serial number in output stream: 33 [ INFO] [1577814459.116433454]: Plugin ftp initialized [ INFO] [1577814459.116714685]: Plugin global_position loaded INFO [dataman] Unknown restart, data manager file './dataman' size is 11798680 bytes INFO [simulator] Waiting for simulator to connect on TCP port 4561 [ INFO] [1577814459.230935255]: Plugin global_position initialized [ INFO] [1577814459.231278183]: Plugin gps_rtk loaded [ INFO] [1577814459.262273871]: Plugin gps_rtk initialized [ INFO] [1577814459.262576803]: Plugin hil loaded INFO [px4] Creating symlink /home/cactus/Firmware/ROMFS/px4fmu_common -> /home/cactus/.ros/sitl_iris_2/etc 0 WARNING: setRealtimeSched failed (not run as root?) process[uav2/sitl_2-11]: started with pid [21037]
| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/
px4 starting.
[ INFO] [1577814460.040704093]: Plugin adsb loaded
[ INFO] [1577814460.056241494]: Plugin adsb initialized
[ INFO] [1577814460.056504420]: Plugin altitude loaded
[ INFO] [1577814460.061298735]: Plugin altitude initialized
[ INFO] [1577814460.061554436]: Plugin cam_imu_sync loaded
[ INFO] [1577814460.067573530]: Plugin cam_imu_sync initialized
[ INFO] [1577814460.067931176]: Plugin command loaded
[INFO] [1577814460.088130, 0.000000]: Loading model XML from ros parameter
[INFO] [1577814460.095283, 0.000000]: Waiting for service /gazebo/spawn_urdf_model
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 14570 remote port 14550
[ INFO] [1577814460.110452399]: Plugin command initialized
[ INFO] [1577814460.110717594]: Plugin companion_process_status loaded
[ INFO] [1577814460.117436390]: Plugin setpoint_position initialized
[ INFO] [1577814460.117830009]: Plugin setpoint_raw loaded
SpawnModel script started
[ INFO] [1577814460.126353750]: Plugin companion_process_status initialized
[ INFO] [1577814460.126588669]: Plugin debug_value loaded
[uav2/mavros-13] killing on exit
[uav2/iris_2_spawn-12] killing on exit
Traceback (most recent call last):
File "/home/cactus/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/scripts/spawn_model", line 32, in
[uav0/sitl_0-5] escalating to SIGTERM [rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done
error1:
[ INFO] [1577814460.029064286]: Plugin actuator_control initialized [gazebo-3] process has died [pid 20489, exit code 134, cmd /home/cactus/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/scripts/gzserver -e ode /home/cactus/Firmware/Tools/sitl_gazebo/worlds/empty.world name:=gazebo log:=/home/cactus/.ros/log/a17d52d6-2bf5-11ea-aa82-e4029be100e1/gazebo-3.log]. log file: /home/cactus/.ros/log/a17d52d6-2bf5-11ea-aa82-e4029be100e1/gazebo-3.log ================================================================================REQUIRED process [uav1/mavros-10] has died! process has died [pid 20839, exit code -6, cmd /home/cactus/catkin_ws/devel/lib/mavros/mavros_node name:=mavros log:=/home/cactus/.ros/log/a17d52d6-2bf5-11ea-aa82-e4029be100e1/uav1-mavros-10.log]. log file: /home/cactus/.ros/log/a17d52d6-2bf5-11ea-aa82-e4029be100e1/uav1-mavros-10.log Initiating shutdown!
error2: [uav1/sitl_1-8] killing on exit ERROR [px4] Startup script returned with return value: 2 ERROR [px4] Startup script returned with return value: 2 [uav0/mavros-7] killing on exit [uav0/iris_0_spawn-6] killing on exit [uav0/sitl_0-5] killing on exit [gazebo_gui-4] killing on exit [formation_control_node-2] killing on exit ERROR [px4] Startup script returned with return value: 2
error3: rospy.exceptions.ROSInitException: init_node interrupted before it could complete [uav2/sitl_2-11] escalating to SIGTERM[uav1/sitl_1-8] escalating to SIGTERM
[uav0/sitl_0-5] escalating to SIGTERM [rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done
@zillay-bot Seems like your px4 sitl is segfaulting
and this?
ODOM: Ex: Could not find a connection between 'local_origin_ned' and 'fcu' because they are not part of the same tree.Tf has two or more unconnected trees.
That is not related to your issue. Can you run px4 gazebo sitl simulation without mavros_swarm?
yes i can launch posix and multi uavs but in case of multi uavs i get the error about unconnected trees
yes i can run it
Syeda Zillay Nain ZukhrafAssociate Section Student Representative (ASSR)Student Activities Committee, IEEE Islamabad Section Region-10, Pakistan.
Email: zillaynain@ieee.org muzamil@ieee.org www.ieee.org http://www.ieee.org/ Follow us on: http://twitter.com/ieeexp http://www.instagram.com/ieeexp/
On Tue, Dec 31, 2019 at 10:54 PM JaeyoungLim notifications@github.com wrote:
That is not related to your issue. Can you run px4 gazebo sitl simulation without mavros_swarm?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Jaeyoung-Lim/mavros_swarm/issues/30?email_source=notifications&email_token=AOB2HBW7MJXCHAEXPFE5AYDQ3OBM3A5CNFSM4KBWYNCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH4P5GY#issuecomment-569966235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOB2HBQMBMOUTMUHAWUO4D3Q3OBM3ANCNFSM4KBWYNCA .
i tried to install mavros_swarm from https://github.com/Jaeyoung-Lim/mavros_swarm but i am unableto as i clone after this i am unable to rosinistall the dependencies to here are the details:
:/catkin_ws/src$ git clone https://github.com/Jaeyoung-Lim/mavros_swarm.git Cloning into 'mavros_swarm'... remote: Enumerating objects: 4, done. remote: Counting objects: 100% (4/4), done. remote: Compressing objects: 100% (4/4), done. remote: Total 351 (delta 1), reused 0 (delta 0), pack-reused 347 Receiving objects: 100% (351/351), 2.63 MiB | 152.00 KiB/s, done. Resolving deltas: 100% (218/218), done. Checking connectivity... done. cd catkin_ws cactus@cactus-Inspiron-5559:/catkin_ws$ catkin build Profile: default Extending: [cached] /opt/ros/kinetic Workspace: /home/cactus/catkin_ws Build Space: [exists] /home/cactus/catkin_ws/build Devel Space: [exists] /home/cactus/catkin_ws/devel Install Space: [unused] /home/cactus/catkin_ws/install Log Space: [exists] /home/cactus/catkin_ws/logs Source Space: [exists] /home/cactus/catkin_ws/src DESTDIR: [unused] None Devel Space Layout: linked Install Space Layout: None Additional CMake Args: None Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True Cache Job Environments: False Whitelisted Packages: None Blacklisted Packages: None Workspace configuration appears valid.
[build] Found '16' packages in 0.0 seconds. [build] Updating package table. Starting >>> beginner Starting >>> final_year_project Starting >>> gazebo_dev Starting >>> gazebo_msgs Finished <<< final_year_project [ 0.2 seconds ] Starting >>> mavlink Finished <<< beginner [ 0.2 seconds ] Starting >>> mavros_msgs Finished <<< gazebo_dev [ 0.2 seconds ] Finished <<< mavlink [ 1.6 seconds ] Finished <<< gazebo_msgs [ 2.2 seconds ] Starting >>> libmavconn Finished <<< libmavconn [ 0.3 seconds ] Starting >>> gazebo_plugins Starting >>> gazebo_ros Finished <<< mavros_msgs [ 3.2 seconds ] Starting >>> mavros Finished <<< gazebo_ros [ 1.7 seconds ] Finished <<< mavros [ 2.5 seconds ] Starting >>> gazebo_ros_control Starting >>> formation_control Starting >>> mavros_extras Finished <<< gazebo_plugins [ 2.7 seconds ] Finished <<< gazebo_ros_control [ 0.2 seconds ] Finished <<< mavros_extras [ 1.2 seconds ] Starting >>> test_mavros
Errors << formation_control:cmake /home/cactus/catkin_ws/logs/formation_control/build.cmake.000.log CMake Error at /home/cactus/catkin_ws/src/mavros_swarm/formation_control/CMakeLists.txt:6 (find_package): By not providing "Findcatkin_simple.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "catkin_simple", but CMake did not find one.
Could not find a package configuration file provided by "catkin_simple" with any of the following names:
catkin_simpleConfig.cmake catkin_simple-config.cmake
Add the installation prefix of "catkin_simple" to CMAKE_PREFIX_PATH or set "catkin_simple_DIR" to a directory containing one of the above files. If "catkin_simple" provides a separate development package or SDK, be sure it has been installed. ~/catkin_ws$ wstool init . ./mavros_swarm/dependencies.rosinstall Using initial elements from: ./mavros_swarm/dependencies.rosinstall ERROR in config: Is not a local file, nor a valid URL [./mavros_swarm/dependencies.rosinstall] : unknown url type: ./mavros_swarm/dependencies.rosinstall /catkin_ws/src$ wstool merge mavros_swarm.rosinatall /usr/lib/python2.7/dist-packages/wstool/config_yaml.py:74: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. yamldata = yaml.load(stream) ERROR in config: Is not a local file, nor a valid URL [mavros_swarm.rosinatall] : unknown url type: mavros_swarm.rosinatall cactus@cactus-Inspiron-5559:/catkin_ws/src$ wget https://github.com/Jaeyoung-Lim/mavros_swarm.rosinstall --2019-12-31 21:21:15-- https://github.com/Jaeyoung-Lim/mavros_swarm.rosinstall Resolving github.com (github.com)... 140.82.114.4 Connecting to github.com (github.com)|140.82.114.4|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2019-12-31 21:21:19 ERROR 404: Not Found.