-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I run roslaunch vswarm vswarm_gazebo.launch n:=3, error occured #1
Comments
This looks like a problem with the Try to closely follow the instructions in https://github.com/lis-epfl/vswarm/blob/master/docs/installation.md, especially the following section: cd ~/catkin_ws/src/
sudo apt install python3-pip # required for pip installations
sudo apt install python3-sip-dev # PyKDL requirement
python3 -m pip install --user -r vswarm/requirements.txt
# This is a bad hack, but it works :) (build requirement for python_orocos_kdl)
ln -sf /usr/lib/python2.7/dist-packages/sipconfig{,_nd}.py ~/.local/lib/python3.6/site-packages/
ln -sf ${PX4_ROOT}/ROMFS ~/.ros/ # Let PX4 find its config (even when working dir is ~/.ros) Hope this helps! |
Thanks for your response. |
I think the way you install PX4 is not related to your issue. It looks like either Can you check your Mine looks like this, for instance: > echo $PYTHONPATH
/home/fabian/catkin_ws/devel/lib/python3/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages |
OK, the missing module bug was resolved after I added the path. [drone_1/relative_localization_node-15] process has died [pid 2957, exit code -11 In addition, Gazebo has only one green basin, and no airplane shows it. The ‘vswarm takeoff’ command can be used normally. [Err] [Visual.cc:2361] Visual::InsertMesh no submeshes, this is an invalid mesh |
Make sure you have git-lfs (Git Large File Storage) installed otherwise the 3D meshes will not be cloned. Alternatively you can download the meshes directly from GitHub and place them into the correct folder: https://github.com/lis-epfl/vswarm/tree/master/models/lequad/meshes. |
It feels like the problem has been solved. Another terminal show However, three planes took off normally. But when I run 'vswarm offboard ', it will show However, another terminal show But, the three drones hover in the air without moving And, the error of the process being killed still exists [drone_1/relative_localization_node-15] process has died [pid 60014, exit code -11, cmd /home/sysu/catkin_ws/src/vswarm/src/relative_localization_node.py detections:=object_detection_node/detections __name:=relative_localization_node __log:=/home/sysu/.ros/log/270a012a-ea21-11eb-a164-000c29626587/drone_1-relative_localization_node-15.log] There is no simulation video on your YouTube, do you record simulation video? |
I have meet the same trouble |
However. I haven't found out why I can't do cluster movement. |
The problem I encountered was that there was no response to executing cluster commands after takeoff. |
This is probably an installation issue: check if all the imports are working correctly (i.e., don't throw errors) in |
I checked that the packages imported by Python were all correct |
When I attempted to roslaunch relative_localization_node.launch, the same mistake occurred. NODES ROS_MASTER_URI=http://127.0.0.1:11311 process[relative_localization_node-1]: started with pid [21144] |
When I debug the relative_localization_node.py, this is a problem in "import tf2_geometry_msgs ------- import PyKDL", maybe this is the reason why the [relative_localization_node-1] process has died. |
That's it. Follow the installation instructions at https://github.com/lis-epfl/vswarm/blob/master/docs/installation.md and make sure you can import all libraries without errors. |
I have followed the installation instruction at https://github.com/lis-epfl/vswarm/blob/master/docs/installation.md and make sure I can import all libraries without errors |
If run relative_localization_node.py in terminal, it will show Segmentation fault( core dumped), so it might not be an installation issue. Could the author help to figure out what is the problem. |
|
So have you worked out this problem? |
However, I didn't run it successfully here either |
Could you share any progress regarding the cluster command? |
I'm sorry, but this error is still unresolved. Please let me know if you have any progress. |
Can someone run this project successfully? |
Unfortunately, I cannot still run this project. |
As I mentioned above, I am fairly sure that the error arises from the vswarm/src/relative_localization_node.py Line 137 in d18ce64
One option you have is to implement this frame transformations yourself. Here is the source, it is quite straight forward: tf2_geometry_msgs.py. In any case, relative_localization_node.py is just a thin ROS wrapper around relative_localization.py and computes 3D relative positions from 2D image observations. |
I meet the same issue. then
|
HP: requesting home position Have you encountered the gps plugin problem? I can't get the gps information from the code. However, roslaunch px4 mavros_posix_sitl.launch, there are gps information. I have px4 1.10.2+Gazebo 9.19.0. |
I can't do cluster movement too. Did you resolve the problem? I‘m looking forward to your reply. |
error:
ModuleNotFoundError: No module named 'vswarm'
ModuleNotFoundError: No module named 'vswarm.cfg
ImportError: dynamic module does not define module export function (PyInit_PyKDL)
process has died [pid 3432, exit code
Gazebo can open, but there is no uav.
At the beginning of startup, the terminal has mavros messages of three uavs.
Then the terminal will prompt that the vswarm model has not been found (catkin build has been successful) and some processes have been killed.
I need your help, thank you
The text was updated successfully, but these errors were encountered: