USC-ACTLab / crazyswarm

A Large Quadcopter Swarm
MIT License
327 stars 323 forks source link

Crazyswarm testing failed #110

Closed bconvens closed 4 years ago

bconvens commented 6 years ago

Hi,

I am new to ROS/crazyflie and I am trying to test the capabilities of the crazyswarm code, but I am having some problems with the tutorial and have questions about stuff that are not 100% clear to me.

My setup: I have a vicon nexus system running on a windows PC. The latter is connected with an Ethernet cable to my laptop running ubuntu 16.04 and ROS kinetic. Currently I have only 1 crazyflie 2.0, but I would like to test for a swarm later. I have already been able to teleoperate the crazyflie 2.0 using an xbox controller via the cfclient before I installed crazyswarm.

1) First of all after building the crazyswarm code with ./build.sh. Is there anything else not explained in the tutorial I need to do or run in the terminal? I also executed ~/crazyswarm/ros_ws/build$ make. Anything else I need to make or do? 2) I assigned 0xE7E7E7E701 to cf1. I assign cf1 to channel 100, and not to 80 as in your tutorial. Is this a problem? 3) The crazyflie firmware is upgraded by doing crazyflie-firmware$ make cload. image 4) I tried to update the firmware of your Crazyradios but none of the methods works. Below are some pictures of the error I get with option 2. Why is none of these commands working? image image image 5) When I put rosrun crazyflie_tools scan in the terminal I get something different than what is expected from the tutorial (it should give Found Crazyradio with version 99.55). See the picture below what I obtain. What can be the reason for this? image 6) the original ros_ws/src/crazyswarm/launch/allCrazyflies.yaml file looks like: crazyflies:

  - id: 1
    channel: 100
    initialPosition: [1.5, 1.5, 0.0]
    type: default
  - id: 40
    channel: 100
    initialPosition: [-1.0, -0.5, 0.0]
    type: default

Is it a problem to keep id 40 even if I only test for 1 cf? 7) the ros_ws/src/crazyswarm/launch/crazyflieTypes.yaml file I did not change. Is this ok? 8) In ros_ws/src/crazyswarm/launch/hover_swarm.launch I changed the following lines: motion_capture_type: "vicon" # one of none,vicon,optitrack,qualisys object_tracking_type: "motionCapture" # one of motionCapture,libobjecttracker vicon_host_name: "134.184.20.148" I did not change the default broadcast_address: "FFE7E7E7E7", is this correct? 9) When trying to monitor the swarm I first do ~/crazyswarm/ros_ws/devel$ source setup.bash, but then get an error when I click on battery (same for other buttons): image image In the tutorial is stated that it the tool reads the ros_ws/src/crazyswarm/launch/all49.yaml file, but I don't have this file in the folder, is this normal? 10) Basic flight. How can I run crazyflie_server? I found it in /crazyswarm/ros_ws/devel/lib/crazyflie_driver, but don't know how to run it. When I execute source ros_ws/devel/setup.bash roslaunch crazyswarm hover_swarm.launch I get the following error: [ WARN] [1540915958.700318395]: No updated pose for motion capture object cf1 [ WARN] [1540915958.706759654]: No updated pose for motion capture object cf1 [ WARN] [1540915958.716307725]: No updated pose for motion capture object cf1 What can be the reason? 11) For the vicon sdk is it SDK (version 1.7.1) from http://www.vicon.com as specified in the readme file or is it possible to use a more recent SDK version? And how should the folder tree exactly look? Is it correctly shown in #51? Since it is very confusing with the default folder tree that seems to not have a externalDependencies folder in the crazyflie_ros folder, but it has one a folder layer higher as a subfolder of src. Could you please show your tree? 12) Note that when testing the vicon_bridge this actually seems to work: image Only when we occlude markers on purpose we get these warnings: image Is this the result I should get for a working vicon bridge?

Thanks a lot for the help!

whoenig commented 6 years ago
  1. build.sh should be fine. It runs catkin_make as well.
  2. No, that's fine. Just provide the correct channel in allCrazyflies.yaml
  3. You have to use python(2). For that version, you seem to be missing usb. Try sudo apt install python-usb
  4. The output changed in newer version. You can still use --verbose to get more detailed output as before.
  5. You can keep whatever CFs you want. But you should use chooser.py to enable/disable the ones you want to fly.
  6. Yes, not need to change if you fly a standard CF2.0.
  7. This is correct. Broadcast_address is actually not used (anymore).
  8. Try sudo apt install python-yaml. all49.yaml has been renamed to allCrazyflies.yaml. In which part of the documentation did you still see all49.yaml?
  9. There seems to be an issue with using Nexus (we tested with Tracker). Essentially, the object should show up as "cf1/cf1" and not "cf1/cff". I don't have Nexus to test. Do you guys have Tracker as well?
  10. The latest version comes with the SDK included (no need to manually install anything).
  11. See 10.

Note that 10/12 seems the problem in issue #106 as well. So if you figure out where that "cff" comes from, that would be very helpful!

bconvens commented 6 years ago

The numbers below correspond the the numbers of my questions:

  1. Is your answer 3 to my my question 3 or 4? In my question/point 3 I wanted to ask if the shown result when I do make cload is correct? I connect the crazyradio PA, put crazyflie in bootload mode and just type make cload in the terminal and it automatically chooses python3 (see the line python3 -m cfloader flash cf2.bin stm-fw). So I don’t see how I can change this to python 2. image
  2. I assume that your answer 3 is to my question 4. I had to indeed install 1 new package by sudo apt install python-usb. I plug in the crazyradio PA, execute python2 crazyradio-firmware/usbtools/launchBootloader.py and then I execute sudo python2 crazyradio-firmware/usbtools/nrfbootload.py flash prebuilt/cradio.bin. image What is the reason python 3 is not working and how can I see that this must be executed with python 2? What’s the reason why it only works with sudo?
  3. When unplugging and replugging the crazyradio PA and activating the crazyflie 2.0 I get (without and with connecting it also with usb cable): image Is crazyradio version 99.55 the last version? What is meant with “version 2” in “Found crazyflie connected via USB cable with version 2”?
  4. After sudo apt install python-yaml I get the same error. The radio is plugged in and crazyflie is activated. Unplugging and replugging does not help. Any idea why it keeps complaining about yaml? image image image image image In the tutorial section Usage/Monitor Swarm is stated that this tool (the crazyflie chooser gui) reads the ros_ws/src/crazyswarm/launch/all49.yaml file, but I don't have this file in the folder (because it is renamed probably). So maybe this can be changed in the tutorial. 10/12. The names can be changed in Nexus too. If I name the subject (equivalent of an object in tracker) and the segment both to "cf1" so that it shows up as cf1/cf1. 20181031_195539 20181031_195535 Unfortunately, I still get the warning that the pose of cf1 is not updated. In rviz I still don't see anything. What should I get there? But, when I press start/back on the xbox controller, the crazyflie takes off and lands (although not staying at a fixed altitude). 20181031_195548 Is it normal that as long as 9. is not solved, I will have problems with this step or is there another cause? Do you still think it is because of nexus vs tracker software? Unfortunately I don't have tracker to test it now, but I will ask a trial license. On your tutorial I see it is working with tracker 3.4, but are newer versions of tracker also working?

Thanks!

whoenig commented 6 years ago
  1. Yes your usage of make cload was correct.
  2. The script is old and was written for python2 and python3. I don't think there is a way to find out, apart from looking at the error message. You need sudo because the radio goes into a different mode after you start the bootloader. This mode had a different device/vendor id, which you probably didn't include in your udev-rule.
  3. 99 just means you compiled yourself. I believe 55 is the latest version. I don't know what "version 2" exactly means - that's just the version query we get back from the CF.
  4. chooser.py actually executes some other scripts with python3, so try sudo apt install python3-yaml. Note that we use different python versions here because ROS only supports python2, while we usually prefer python3 for new development.

You should see the frame of the CF in rviz if the connection works. Nexus should work equally well as Tracker, especially since you figured out how to change the segment name there. We are working with the latest Tracker (3.7 or so). Perhaps the easiest would be to debug the issue by adding some print outs here: https://github.com/USC-ACTLab/libmotioncapture/blob/master/src/vicon.cpp#L83-L105.

bconvens commented 6 years ago

Hi,

Thanks for the quick responses. Here is an update. 1) Chooser.py sudo apt install python3-yaml and pip3 install pyyaml seemed to solve my problems with chooser.py If I execute the chooser.py I obtain the following results when pressing the buttons in the GUI. image image The timeout occurs when the crazyflie is in power save mode after clicking sysOff button. As explain in your tutorial, at that moment the version button does not work and I think it gives therefore timeout error. Can you please confirm if this is the expected result? Should I execute python chooser.py, python2 chooser.py or python3 chooser.py. Since up to know it only works with chooser.py, python2 chooser.py? When doing python3 chooser.py I still get error referred to Tkinter. image

2) Basic flight I closed the chooser.py gui, while running this next line. Is this possible or should I always leave the chooser GUI opened? If I test without being plugged to a vicon PC, I get the following results when I chronologically press takeoff, land and the emergency button on the xbox joystick and finally manually stop it: image image image image I don't see anything in rviz, neither I get an error (which seems normal according the next lines). In the crazyswarm tutorial documentation is stated:

If there is an error (such as a faulty configuration or a turned-off Crazyflie) an error message will be shown and the application exits. If there is a problem in the communication between the motion capture system and the Crazyswarm server, the application will not exit but the positions of the Crazyflies will not appear in rviz.

When the application is running and I shut down the crazyflie 2.0, the application does not exit in my case, nothing new is displayed in the terminal. After it is turned off, I can even still execute takeoff and land commands and they appear in the terminal. If the crazyflie was turned off before I execute the hover_swarm.launch I get: image So according to what is expected from the tutorial documentation this is already a problem. Any idea why this is?

Thanks for helping me out!

whoenig commented 6 years ago
  1. The behavior is expected. I usually run it using python(2), but the script might work in python3 if you install the missing TK-support for python3.
  2. You can leave chooser.py running or not (while the crazyswarm_server is running, chooser.py cannot be used actively).

Without Vicon connection, nothing will work, so you first need to make sure that the CF actually shows up in rviz.

The Crazyswarm mostly uses unidirectional broadcasts (from PC to CFs) to achieve its CF/radio ratio. The downside is, that there is no way for us to detect if a CF is "connected" (in fact, there is no such connected/disconnected state machine in the Crazyswarm). If you have the LED ring, the color will indicate if the connection is good (which means: if the CF receives data from the PC). So what you are observing is the expected behavior.

bconvens commented 6 years ago
  1. I tried to install as in https://stackoverflow.com/questions/4783810/install-tkinter-for-python. Unfortunately, it does not help. image image Any idea why it works for python(2) and not for python 3 even if I have it installed for python3?

How can I send using the crazyswarm Python API https://crazyswarm.readthedocs.io/en/latest/api.html position,yaw commands to multiple cfs using just 1 radio? It seems like if I use goTo(self, goal, yaw, duration, groupMask = 0) that all crazyflies would move the same relative distance (if they start from different initial conditions). So I would like to send position commands using 1 radio so that cf1 goes to (2m,1m,1m), cf2 goes to (3m,0m,1m) and cf3 goes to 1m 2m,2m)? How can I do this? I think it has to to with the groupMask, but I am not sure.

I will soon test the code with the vicon system in the loop. Hopefully it works now! :-) Thanks!

whoenig commented 6 years ago

I think in python3 the module is called "tkinter" (i.e., lower-case). Nevertheless, if it works with python2, there is no strong reason to use python3 for this script.

The goTo command can be called on an individual CF object (see https://crazyswarm.readthedocs.io/en/latest/api.html#individual-crazyflie). You can simply make 3 function calls, the crazyswarm will just use one radio if the CFs share the same channel. Note that this won't be synchronous. If you want perfect synchronous execution, you will need to use relative commands (and broadcasts), or compute the trajectories offline, upload the trajectories while the CFs are on the ground, and then broadcast a startTrajectory() command.

bconvens commented 6 years ago

I tested with vicon in the loop, but unfortunately it still does not work. The terminal output below is what I get if I don't press start on the xbox controller. If I press start the cf take off in a very weird, unstable way and crashes (or I stop it before with the xbox controller). I get the same warning as before. I never see any frame of the cf in rviz. `brybuntu@brybuntu-ThinkPad-W541:~/crazyswarm/ros_ws$ roslaunch crazyswarm hover_swarm.launch ... logging to /home/brybuntu/.ros/log/cb3d3440-e1ac-11e8-bea6-54ee754e3928/roslaunch-brybuntu-ThinkPad-W541-19803.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.

started roslaunch server http://brybuntu-ThinkPad-W541:33803/

SUMMARY

PARAMETERS

NODES / crazyswarm_server (crazyswarm/crazyswarm_server) crazyswarm_teleop (crazyswarm/crazyswarm_teleop) joy (joy/joy_node) rviz (rviz/rviz)

auto-starting new master process[master]: started with pid [19813] ROS_MASTER_URI=http://localhost:11311

setting /run_id to cb3d3440-e1ac-11e8-bea6-54ee754e3928 process[rosout-1]: started with pid [19826] started core service [/rosout] process[crazyswarm_server-2]: started with pid [19843] process[joy-3]: started with pid [19844] process[crazyswarmteleop-4]: started with pid [19845] process[rviz-5]: started with pid [19860] [ INFO] [1541499290.221423910]: Wait for services... [ INFO] [1541499290.222021835]: waitForService: Service [/emergency] has not been advertised, waiting... [ INFO] [1541499290.243128900]: waitForService: Service [/emergency] is now available. [ INFO] [1541499290.244377078]: Manager ready. ch: 1 [ INFO] [1541499290.266657308]: Opened joystick: /dev/input/js0. deadzone: 0.050000. [ INFO] [1541499290.300117523]: Adding CF: cf1 (radio://0/100/2M/E7E7E7E701, cf1)... [ INFO] [1541499290.305717349]: CF ctor: 0.005513 s [ INFO] [1541499291.282204769]: [cf1] Requesting parameters... [ INFO] [1541499291.290337769]: Found variables in cache. [ INFO] [1541499291.537553024]: [cf1] reqParamTOC: 1.231792 s [ INFO] [1541499291.537577604]: Requesting memories... [ INFO] [1541499291.649087560]: Memories: 5 [ INFO] [1541499291.661583947]: [cf1] Ready. Elapsed: 1.355815 s [ INFO] [1541499291.661613833]: CF run: 1.355922 s update commander/enHighLevel to 1 update ring/effect to 16 update ring/headlightEnable to 0 update ring/solidBlue to 255 update ring/solidGreen to 0 update ring/solidRed to 0 update stabilizer/controller to 2 update stabilizer/estimator to 3 update ctrlMel/i_range_m_z to 1500 update ctrlMel/i_range_xy to 2 update ctrlMel/i_range_z to 0.4 update ctrlMel/kR_xy to 70000 update ctrlMel/kR_z to 60000 update ctrlMel/kd_omega_rp to 200 update ctrlMel/kd_xy to 0.2 update ctrlMel/kd_z to 0.4 update ctrlMel/ki_m_z to 500 update ctrlMel/ki_xy to 0.05 update ctrlMel/ki_z to 0.05 update ctrlMel/kp_xy to 0.4 update ctrlMel/kp_z to 1.25 update ctrlMel/kw_xy to 20000 update ctrlMel/kw_z to 12000 update ctrlMel/mass to 0.032 update ctrlMel/massThrust to 132000 [ INFO] [1541499291.679976254]: [cf1] Update parameters [ INFO] [1541499291.718130782]: Update params: 0.056469 s [ INFO] [1541499291.718272602]: Started 1 threads [ WARN] [1541499291.718509669]: No updated pose for motion capture object cf1 [ WARN] [1541499291.720954908]: No updated pose for motion capture object cf1 [ WARN] [1541499291.731004342]: No updated pose for motion capture object cf1 [ WARN] [1541499291.741063967]: No updated pose for motion capture object cf1 [ WARN] [1541499291.751575012]: No updated pose for motion capture object cf1 [ WARN] [1541499291.761291723]: No updated pose for motion capture object cf1 [ WARN] [1541499291.772430561]: No updated pose for motion capture object cf1 [ WARN] [1541499291.782737202]: No updated pose for motion capture object cf1 [ WARN] [1541499291.790966565]: No updated pose for motion capture object cf1 [ WARN] [1541499291.801044600]: No updated pose for motion capture object cf1 [ WARN] [1541499291.811290901]: No updated pose for motion capture object cf1 [ WARN] [1541499291.820964952]: No updated pose for motion capture object cf1 [ WARN] [1541499291.831341942]: No updated pose for motion capture object cf1 [ WARN] [1541499291.841042315]: No updated pose for motion capture object cf1 [ WARN] [1541499291.852983923]: No updated pose for motion capture object cf1 [ WARN] [1541499291.862855711]: No updated pose for motion capture object cf1 [ WARN] [1541499291.871288190]: No updated pose for motion capture object cf1 [ WARN] [1541499291.881255942]: No updated pose for motion capture object cf1 [ WARN] [1541499291.891121980]: No updated pose for motion capture object cf1 [ WARN] [1541499291.901215237]: No updated pose for motion capture object cf1 [ WARN] [1541499291.911326198]: No updated pose for motion capture object cf1 [ WARN] [1541499291.920993241]: No updated pose for motion capture object cf1 [ WARN] [1541499291.931544157]: No updated pose for motion capture object cf1 [ WARN] [1541499291.941406352]: No updated pose for motion capture object cf1 [ WARN] [1541499291.951535662]: No updated pose for motion capture object cf1 [ WARN] [1541499291.961379105]: No updated pose for motion capture object cf1 [ WARN] [1541499291.971544144]: No updated pose for motion capture object cf1 [ WARN] [1541499291.981153584]: No updated pose for motion capture object cf1 [ WARN] [1541499291.991608049]: No updated pose for motion capture object cf1 [ WARN] [1541499292.001256755]: No updated pose for motion capture object cf1 [ WARN] [1541499292.011141959]: No updated pose for motion capture object cf1 [ WARN] [1541499292.022604207]: No updated pose for motion capture object cf1 [ WARN] [1541499292.031497022]: No updated pose for motion capture object cf1 [ WARN] [1541499292.041346197]: No updated pose for motion capture object cf1 [ WARN] [1541499292.051209705]: No updated pose for motion capture object cf1 [ WARN] [1541499292.061141755]: No updated pose for motion capture object cf1 [ WARN] [1541499292.071149281]: No updated pose for motion capture object cf1 [ WARN] [1541499292.082489601]: No updated pose for motion capture object cf1 [ WARN] [1541499292.092199606]: No updated pose for motion capture object cf1 [ WARN] [1541499292.102711297]: No updated pose for motion capture object cf1 [ WARN] [1541499292.111033385]: No updated pose for motion capture object cf1 [ WARN] [1541499292.121312247]: No updated pose for motion capture object cf1 [ WARN] [1541499292.131092201]: No updated pose for motion capture object cf1 [ WARN] [1541499292.141134206]: No updated pose for motion capture object cf1 [ WARN] [1541499292.151326597]: No updated pose for motion capture object cf1 [ WARN] [1541499292.161143881]: No updated pose for motion capture object cf1 [ WARN] [1541499292.172622360]: No updated pose for motion capture object cf1 [ WARN] [1541499292.181560242]: No updated pose for motion capture object cf1 [ WARN] [1541499292.191398673]: No updated pose for motion capture object cf1 [ WARN] [1541499292.201268405]: No updated pose for motion capture object cf1 [ WARN] [1541499292.211375618]: No updated pose for motion capture object cf1 [ WARN] [1541499292.221410264]: No updated pose for motion capture object cf1 [ WARN] [1541499292.231435296]: No updated pose for motion capture object cf1 [ WARN] [1541499292.241203512]: No updated pose for motion capture object cf1 [ WARN] [1541499292.252845608]: No updated pose for motion capture object cf1 [ WARN] [1541499292.262614703]: No updated pose for motion capture object cf1 [ WARN] [1541499292.270848476]: No updated pose for motion capture object cf1 [ WARN] [1541499292.281017308]: No updated pose for motion capture object cf1 [ WARN] [1541499292.291067366]: No updated pose for motion capture object cf1 [ WARN] [1541499292.301099611]: No updated pose for motion capture object cf1 [ WARN] [1541499292.311030316]: No updated pose for motion capture object cf1 [ WARN] [1541499292.320870590]: No updated pose for motion capture object cf1 [ WARN] [1541499292.331075191]: No updated pose for motion capture object cf1 [ WARN] [1541499292.341890013]: No updated pose for motion capture object cf1 [ WARN] [1541499292.350970383]: No updated pose for motion capture object cf1 [ WARN] [1541499292.361146578]: No updated pose for motion capture object cf1 [ WARN] [1541499292.371030379]: No updated pose for motion capture object cf1 [ WARN] [1541499292.381087595]: No updated pose for motion capture object cf1 [ WARN] [1541499292.391422103]: No updated pose for motion capture object cf1 [ WARN] [1541499292.400938849]: No updated pose for motion capture object cf1 [ WARN] [1541499292.411077825]: No updated pose for motion capture object cf1 [ WARN] [1541499292.421742617]: No updated pose for motion capture object cf1 [ WARN] [1541499292.430959472]: No updated pose for motion capture object cf1 [ WARN] [1541499292.441101074]: No updated pose for motion capture object cf1 [ WARN] [1541499292.451101340]: No updated pose for motion capture object cf1 [ WARN] [1541499292.460990042]: No updated pose for motion capture object cf1 [ WARN] [1541499292.471115280]: No updated pose for motion capture object cf1 [ WARN] [1541499292.481548036]: No updated pose for motion capture object cf1 [ WARN] [1541499292.492688131]: No updated pose for motion capture object cf1 [ WARN] [1541499292.501194094]: No updated pose for motion capture object cf1 [ WARN] [1541499292.511191086]: No updated pose for motion capture object cf1 [ WARN] [1541499292.520979582]: No updated pose for motion capture object cf1 [ WARN] [1541499292.531205045]: No updated pose for motion capture object cf1 [ WARN] [1541499292.541414131]: No updated pose for motion capture object cf1 [ WARN] [1541499292.552908885]: No updated pose for motion capture object cf1 [ WARN] [1541499292.562776336]: No updated pose for motion capture object cf1 [ WARN] [1541499292.571523620]: No updated pose for motion capture object cf1 [ WARN] [1541499292.581439441]: No updated pose for motion capture object cf1 [ WARN] [1541499292.591497682]: No updated pose for motion capture object cf1 [ WARN] [1541499292.601396906]: No updated pose for motion capture object cf1 [ WARN] [1541499292.611514596]: No updated pose for motion capture object cf1 [ WARN] [1541499292.621032532]: No updated pose for motion capture object cf1 [ WARN] [1541499292.630935152]: No updated pose for motion capture object cf1 [ WARN] [1541499292.640921509]: No updated pose for motion capture object cf1 [ WARN] [1541499292.652547015]: No updated pose for motion capture object cf1 [ WARN] [1541499292.661831846]: No updated pose for motion capture object cf1 [ WARN] [1541499292.671265639]: No updated pose for motion capture object cf1 [ WARN] [1541499292.681339923]: No updated pose for motion capture object cf1 [ WARN] [1541499292.691439924]: No updated pose for motion capture object cf1 [ WARN] [1541499292.701120038]: No updated pose for motion capture object cf1 [ WARN] [1541499292.711515742]: No updated pose for motion capture object cf1 [ WARN] [1541499292.721101367]: No updated pose for motion capture object cf1 [ WARN] [1541499292.732815285]: No updated pose for motion capture object cf1 [ WARN] [1541499292.741666141]: No updated pose for motion capture object cf1 [ WARN] [1541499292.750939660]: No updated pose for motion capture object cf1 [ WARN] [1541499292.761054832]: No updated pose for motion capture object cf1 [ WARN] [1541499292.771399094]: No updated pose for motion capture object cf1 [ WARN] [1541499292.780852031]: No updated pose for motion capture object cf1 [ WARN] [1541499292.791580114]: No updated pose for motion capture object cf1 [ WARN] [1541499292.801139088]: No updated pose for motion capture object cf1 [ WARN] [1541499292.811454044]: No updated pose for motion capture object cf1 [ WARN] [1541499292.822530177]: No updated pose for motion capture object cf1 [ WARN] [1541499292.831672515]: No updated pose for motion capture object cf1 [ WARN] [1541499292.841726309]: No updated pose for motion capture object cf1 [ WARN] [1541499292.851253382]: No updated pose for motion capture object cf1 [ WARN] [1541499292.861326070]: No updated pose for motion capture object cf1 [ WARN] [1541499292.871990517]: No updated pose for motion capture object cf1 [ WARN] [1541499292.881021439]: No updated pose for motion capture object cf1 [ WARN] [1541499292.890964494]: No updated pose for motion capture object cf1 [ WARN] [1541499292.901439571]: No updated pose for motion capture object cf1 [ WARN] [1541499292.910950843]: No updated pose for motion capture object cf1 [ WARN] [1541499292.922629858]: No updated pose for motion capture object cf1 [ WARN] [1541499292.931109532]: No updated pose for motion capture object cf1 [ WARN] [1541499292.941059336]: No updated pose for motion capture object cf1 [ WARN] [1541499292.951472789]: No updated pose for motion capture object cf1 [ WARN] [1541499292.961049195]: No updated pose for motion capture object cf1 [ WARN] [1541499292.972636616]: No updated pose for motion capture object cf1 [ WARN] [1541499292.983006735]: No updated pose for motion capture object cf1 [ WARN] [1541499292.991299484]: No updated pose for motion capture object cf1 [ WARN] [1541499293.001033448]: No updated pose for motion capture object cf1 [ WARN] [1541499293.011090102]: No updated pose for motion capture object cf1 [ WARN] [1541499293.021532907]: No updated pose for motion capture object cf1 [ WARN] [1541499293.030853997]: No updated pose for motion capture object cf1 [ WARN] [1541499293.040819864]: No updated pose for motion capture object cf1 [ WARN] [1541499293.052822108]: No updated pose for motion capture object cf1 [ WARN] [1541499293.062993805]: No updated pose for motion capture object cf1 [ WARN] [1541499293.070810655]: No updated pose for motion capture object cf1 [ WARN] [1541499293.080727335]: No updated pose for motion capture object cf1 [ WARN] [1541499293.091029118]: No updated pose for motion capture object cf1 [ WARN] [1541499293.100914901]: No updated pose for motion capture object cf1 [ WARN] [1541499293.111098482]: No updated pose for motion capture object cf1 [ WARN] [1541499293.120650265]: No updated pose for motion capture object cf1 [ WARN] [1541499293.130791320]: No updated pose for motion capture object cf1 [ WARN] [1541499293.141446240]: No updated pose for motion capture object cf1 [ WARN] [1541499293.150699657]: No updated pose for motion capture object cf1 [ WARN] [1541499293.160852528]: No updated pose for motion capture object cf1 [ WARN] [1541499293.170971876]: No updated pose for motion capture object cf1 [ WARN] [1541499293.184471218]: No updated pose for motion capture object cf1 [ WARN] [1541499293.193262934]: No updated pose for motion capture object cf1 [ WARN] [1541499293.201109206]: No updated pose for motion capture object cf1 [ WARN] [1541499293.210853978]: No updated pose for motion capture object cf1 [ WARN] [1541499293.222205336]: No updated pose for motion capture object cf1 ^C[ WARN] [1541499293.230770617]: No updated pose for motion capture object cf1 [ WARN] [1541499293.240572793]: No updated pose for motion capture object cf1 [ WARN] [1541499293.250696113]: No updated pose for motion capture object cf1 [ WARN] [1541499293.260388330]: No updated pose for motion capture object cf1 [ WARN] [1541499293.271405146]: No updated pose for motion capture object cf1 [ WARN] [1541499293.280256254]: No updated pose for motion capture object cf1 [ WARN] [1541499293.290714460]: No updated pose for motion capture object cf1 [ WARN] [1541499293.302606254]: No updated pose for motion capture object cf1 [ WARN] [1541499293.311783715]: No updated pose for motion capture object cf1 [rviz-5] killing on exit [crazyswarm_teleop-4] killing on exit [joy-3] killing on exit [ WARN] [1541499293.321987550]: No updated pose for motion capture object cf1 [crazyswarm_server-2] killing on exit [ WARN] [1541499293.330503624]: No updated pose for motion capture object cf1 [rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done `

whoenig commented 6 years ago

Did you check with vicon_bridge, that you actually get vicon/cf1/cf1 now as object?

bconvens commented 6 years ago

Hi!

Thanks for the help! I have some good news. I checked the vicon_bridge and it appears as vicon/cf1/cf1. Using crazyswarm the object tracking seems to be working in rviz. I don't get the warnings anymore, unless I occlude the cf1. :+1: Taking off does not work since the world frame axis and object/segment axis of cf1 do not correspond in orientation/colors. The world frame orientation/colors are the same in rviz and nexus. I tried rotating the cf1s axis in Nexus, but I am forced in Nexus to first define the blue (z-axis) and then the y axis of the cf1. But when placing the markers on the cf1 as in your tutorial, I cannot select the z-axis, since on the cf1 there is no line connected by 2 markers that is orthogonal to the plane of the drone available. image img_20181108_181419

Do you have any idea how I can overcome? Is this also a problem in tracker? Where in your code could I rotate the axis of the cf1 90° over its own y axis?

To be sure: RGB is always x, y z?

Thanks!

whoenig commented 6 years ago