Closed jcampbellNP closed 4 years ago
Does your crazyflies.yaml
show your crazyflie with id 1
and the correct radio channel?
Another common culprit when using the mocap's object tracking is not giving the objects names like cf1, cf2, ...
but it looks like you did that.
You are using ROS melodic and presumably Ubuntu 18.04, whereas we only support ROS kinetic on Ubuntu 16.04. However, if everything compiled correctly, I think it should work.
I use it with 18.04/Melodic and this works fine for me. Please share your crazyflies.yaml
.
Should we update the docs to show support for 18.04/melodic?
Thank you for your responses .I have the address for my CF as 0/80/2M/E7E7E7E701 Here is the crazyflies.yaml. crazyflies:
Edit: I am only using 1 CF right now.
This kind of process stall means that there is trouble with connecting to OptiTrack. From the logs, it seems mocap_helper.launch
actually uses a different configuration (hostname: "optitrack" vs "10.0.13.184"). Also, double check your launch file. If you are on the latest version, the configuration parameter should be "optitrack_host_name", see https://github.com/USC-ACTLab/crazyswarm/blob/master/ros_ws/src/crazyswarm/src/crazyswarm_server.cpp#L1443-L1449 and https://github.com/USC-ACTLab/crazyswarm/blob/master/ros_ws/src/crazyswarm/launch/hover_swarm.launch#L40. The parameters you set are not used in the latest version. If you used the Crazyswarm for a long time, make sure that you update all submodules, since the optitrack support improved dramatically about a year ago.
@jpreiss I just pushed a change to include 18.04 in the list of supported OS.
@jcampbellNP the crazyflies.yaml
should only contain the CFs that you are actively using. The intended workflow is to list all of the CFs you own in allCrazyflies.yaml
, then use chooser.py
to graphically select the subset that you want to use. chooser.py
overwrites crazyflies.yaml
. This is optional though, you can also edit crazyflies.yaml
by hand.
Thank you both for all of your help. It came down to setting "optitrack_host_name" to the correct host IP address and making sure that the crazyflies.yaml was also correct.
Glad to hear it's working for you now!
Hello,
I am unable to get the hover.launch script to run and get my CF to fly. I am using an OptriTrack system. The data is streaming from Motive, and I am able to get the mocap_helper.launch to work (it shows my rigid body data from Motive).
When I launch the hover.launch script RVIZ opens but there is nothing inside of it. I am not getting any errors. It just looks like it is not finding the CF. I have followed all of the directions for the crazyswarm installation, preparation and configuration files. All of the crazyflie addresses are correct with the correct firmware from the directions.
Here is the hover.launch script and the logs for mocap_helper.launch and hover.launch. Any ideas what I should do to get my CF flying?
hover.launch
SUMMARY
PARAMETERS
NODES / mocap_helper (crazyswarm/mocap_helper)
ROS_MASTER_URI=http://localhost:11311
process[mocap_helper-1]: started with pid [30317] frame 0: points: objects: "cf1": occluded: 0 position: [-4.92317, 0.570461, 0.822788] rotation: [-0.788251, 0.104755, -0.11158, 0.596017] frame 1: points: objects: "cf1": occluded: 0 position: [-4.92333, 0.570375, 0.822856] rotation: [-0.78732, 0.10543, -0.111544, 0.597135] frame 2: points: objects: "cf1": occluded: 0 position: [-4.92335, 0.570372, 0.822874] rotation: [-0.787303, 0.105194, -0.111712, 0.597167] frame 3: points: objects: "cf1": occluded: 0 position: [-4.92329, 0.570315, 0.822843] rotation: [-0.787619, 0.105473, -0.110191, 0.596984]
hover.launch
SUMMARY
PARAMETERS
NODES / crazyswarm_server (crazyswarm/crazyswarm_server) crazyswarm_teleop (crazyswarm/crazyswarm_teleop) rviz (rviz/rviz)
auto-starting new master process[master]: started with pid [30030] ROS_MASTER_URI=http://localhost:11311
setting /run_id to 40d252aa-ac0c-11ea-8e0d-64006a91f7f5 process[rosout-1]: started with pid [30041] started core service [/rosout] process[crazyswarm_server-2]: started with pid [30048] process[crazyswarm_teleop-3]: started with pid [30049] process[rviz-4]: started with pid [30054] [ INFO] [1591897922.605681352]: Wait for services... [ INFO] [1591897922.607034106]: waitForService: Service [/emergency] has not been advertised, waiting... [ INFO] [1591897922.689557690]: waitForService: Service [/emergency] is now available. [ INFO] [1591897922.691725150]: Manager ready.