Code Monkey home page Code Monkey logo

Comments (18)

whoenig avatar whoenig commented on August 16, 2024
  • You should definitely not need to run vrpn_client_ros. The crazyflie server is connecting to your OptiTrack directly. Make sure that both local and server IP are set correctly.
  • According to the log, the server does not even attempt to connect to your CF. How does crazyflies.yaml look like? [This could also be related to the OptiTrack connection issue though, because the server tries to connect to OptiTrack first, before establishing the connection to the CFs]

from crazyswarm.

chungshan avatar chungshan commented on August 16, 2024
  • server IP(192.168.1.99) is on the desktop with Optitrack(motive),and it's windows
    local IP(192.168.1.203) is on the desktop with Ubuntu(another desktop),
    and I'm not sure that whether connection between them has problems or not,I'll check

  • My crazyflie's channel is //0/100/2M/E7E7E7E701
    crazyflies.yaml is

 crazyflies:
- channel: 100
  id: 1
  initialPosition: [0.0, 0.0, 0.0]

thanks for your replying!

from crazyswarm.

chungshan avatar chungshan commented on August 16, 2024

Now,there is another problem,it keeps showing this warning

ncrl@ncrl:~/crazyswarm$ roslaunch crazyswarm hover_swarm.launch
... logging to /home/ncrl/.ros/log/45a46b3c-d587-11e7-a8ba-88d7f65412c4/roslaunch-ncrl-28187.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://192.168.1.203:44387/

SUMMARY
========

PARAMETERS
 * /crazyflie_manager/csv_file: /home/ncrl/crazys...
 * /crazyflie_manager/timescale: 0.8
 * /crazyflie_server/broadcast_address: FFE7E7E7E7
 * /crazyflie_server/dynamicsConfigurations/0/maxFitnessScore: 0.001
 * /crazyflie_server/dynamicsConfigurations/0/maxPitch: 1.4
 * /crazyflie_server/dynamicsConfigurations/0/maxPitchRate: 20.0
 * /crazyflie_server/dynamicsConfigurations/0/maxRoll: 1.4
 * /crazyflie_server/dynamicsConfigurations/0/maxRollRate: 20.0
 * /crazyflie_server/dynamicsConfigurations/0/maxXVelocity: 2.0
 * /crazyflie_server/dynamicsConfigurations/0/maxYVelocity: 2.0
 * /crazyflie_server/dynamicsConfigurations/0/maxYawRate: 10.0
 * /crazyflie_server/dynamicsConfigurations/0/maxZVelocity: 3.0
 * /crazyflie_server/enable_logging: True
 * /crazyflie_server/enable_parameters: True
 * /crazyflie_server/firmwareParams/ctrlMel/i_range_m_z: 1500
 * /crazyflie_server/firmwareParams/ctrlMel/i_range_xy: 2.0
 * /crazyflie_server/firmwareParams/ctrlMel/i_range_z: 0.4
 * /crazyflie_server/firmwareParams/ctrlMel/kR_xy: 70000
 * /crazyflie_server/firmwareParams/ctrlMel/kR_z: 60000
 * /crazyflie_server/firmwareParams/ctrlMel/kd_omega_rp: 200
 * /crazyflie_server/firmwareParams/ctrlMel/kd_xy: 0.2
 * /crazyflie_server/firmwareParams/ctrlMel/kd_z: 0.4
 * /crazyflie_server/firmwareParams/ctrlMel/ki_m_z: 500
 * /crazyflie_server/firmwareParams/ctrlMel/ki_xy: 0.05
 * /crazyflie_server/firmwareParams/ctrlMel/ki_z: 0.05
 * /crazyflie_server/firmwareParams/ctrlMel/kp_xy: 0.4
 * /crazyflie_server/firmwareParams/ctrlMel/kp_z: 1.25
 * /crazyflie_server/firmwareParams/ctrlMel/kw_xy: 20000
 * /crazyflie_server/firmwareParams/ctrlMel/kw_z: 12000
 * /crazyflie_server/firmwareParams/ctrlMel/mass: 0.032
 * /crazyflie_server/firmwareParams/ctrlMel/massThrust: 132000
 * /crazyflie_server/firmwareParams/flightmode/posCtrl: 1
 * /crazyflie_server/firmwareParams/ring/effect: 14
 * /crazyflie_server/firmwareParams/ring/headlightEnable: 0
 * /crazyflie_server/firmwareParams/ring/solidBlue: 20
 * /crazyflie_server/firmwareParams/ring/solidGreen: 0
 * /crazyflie_server/firmwareParams/ring/solidRed: 0
 * /crazyflie_server/force_no_cache: False
 * /crazyflie_server/genericLogTopicFrequencies: [10]
 * /crazyflie_server/genericLogTopic_log1_Variables: ['stabilizer.x', ...
 * /crazyflie_server/genericLogTopics: ['log1']
 * /crazyflie_server/markerConfigurations/0/numPoints: 4
 * /crazyflie_server/markerConfigurations/0/offset: [0.0, -0.01, -0.04]
 * /crazyflie_server/markerConfigurations/0/points/0: [0.0177184, 0.013...
 * /crazyflie_server/markerConfigurations/0/points/1: [-0.0262914, 0.05...
 * /crazyflie_server/markerConfigurations/0/points/2: [-0.0328889, -0.0...
 * /crazyflie_server/markerConfigurations/0/points/3: [0.0431307, -0.03...
 * /crazyflie_server/motion_capture_type: optitrack
 * /crazyflie_server/numDynamicsConfigurations: 1
 * /crazyflie_server/numMarkerConfigurations: 1
 * /crazyflie_server/object_tracking_type: motionCapture
 * /crazyflie_server/optitrack_local_ip: 192.168.1.203
 * /crazyflie_server/optitrack_server_ip: 192.168.1.99
 * /crazyflie_server/print_latency: False
 * /crazyflie_server/save_point_clouds: ~/pointCloud.ot
 * /crazyflie_server/world_frame: /world
 * /crazyflie_server/write_csvs: False
 * /crazyflies: [{'initialPositio...
 * /joy/dev: /dev/input/js0
 * /rosdistro: kinetic
 * /rosversion: 1.12.7

NODES
  /
    crazyflie_manager (crazyflie_manager/crazyflie_manager)
    crazyflie_server (crazyflie_driver/crazyflie_server)
    joy (joy/joy_node)
    rqt (rqt_gui/rqt_gui)
    rqt_plot_yaw (rqt_plot/rqt_plot)
    rviz (rviz/rviz)

ROS_MASTER_URI=http://192.168.1.203:11311

core service [/rosout] found
process[crazyflie_server-1]: started with pid [28205]
NatNetClient connecting: 192.168.1.203 to 192.168.1.99...
WARNING: Could not set receive buffer size. Asked for 1048576B got 0B
[Client] Server Software: Motive
[Client] NatNetVersion: 2.10
[Client] ServerVersion: 1.10
NatNet server version: 1661053120
ch: 1
WARNING: Package "cfclient" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
process[joy-2]: started with pid [28275]
process[crazyflie_manager-3]: started with pid [28276]
process[rviz-4]: started with pid [28288]
[ INFO] [1512025054.510661185]: Wait for services...
process[rqt-5]: started with pid [28308]
[ INFO] [1512025054.513811388]: Adding CF: cf1 (radio://0/100/2M/E7E7E7E701, cf1)...
[ INFO] [1512025054.516141492]: Manager ready.
process[rqt_plot_yaw-6]: started with pid [28320]
[ INFO] [1512025054.518420569]: CF ctor: 0.004542 s
[ WARN] [1512025054.519782674]: Received unrequested data for block: 0
[ WARN] [1512025054.521108727]: Received unrequested data for block: 0
[ WARN] [1512025054.522439311]: Received unrequested data for block: 0
[ WARN] [1512025054.523802724]: Received unrequested data for block: 0
[ WARN] [1512025054.525106804]: Received unrequested data for block: 0
[ WARN] [1512025054.526419273]: Received unrequested data for block: 0
[ WARN] [1512025054.527784387]: Received unrequested data for block: 0
[ WARN] [1512025054.529141033]: Received unrequested data for block: 0
[ WARN] [1512025054.530467826]: Received unrequested data for block: 0
[ WARN] [1512025054.531820484]: Received unrequested data for block: 0
[ WARN] [1512025054.533388259]: Received unrequested data for block: 0
[ WARN] [1512025054.534907417]: Received unrequested data for block: 0
[ WARN] [1512025054.536255442]: Received unrequested data for block: 0
[ WARN] [1512025054.537626055]: Received unrequested data for block: 0
[ WARN] [1512025054.538933564]: Received unrequested data for block: 0
[ WARN] [1512025054.540234008]: Received unrequested data for block: 0
[ WARN] [1512025054.541506370]: Received unrequested data for block: 0
[ WARN] [1512025054.542827703]: Received unrequested data for block: 0
[ WARN] [1512025054.544139015]: Received unrequested data for block: 0
[ WARN] [1512025054.545462982]: Received unrequested data for block: 0
[ WARN] [1512025054.546821394]: Received unrequested data for block: 0
[ WARN] [1512025054.548164468]: Received unrequested data for block: 0
[ WARN] [1512025054.549514147]: Received unrequested data for block: 0
[ WARN] [1512025054.550887495]: Received unrequested data for block: 0
[ WARN] [1512025054.552198387]: Received unrequested data for block: 0
[ WARN] [1512025054.553519999]: Received unrequested data for block: 0
[ WARN] [1512025054.554870252]: Received unrequested data for block: 0
[ WARN] [1512025054.556285566]: Received unrequested data for block: 0
[ WARN] [1512025054.557873451]: Received unrequested data for block: 0
[ WARN] [1512025054.559348708]: Received unrequested data for block: 0
[ WARN] [1512025054.560726342]: Received unrequested data for block: 0
[ INFO] [1512025054.562360986]: [cf1] Requesting parameters...
[ INFO] [1512025054.570276940]: Found variables in cache.
[ INFO] [1512025054.707877715]: [cf1] reqParamTOC: 0.189417 s
[ INFO] [1512025054.707944853]: [cf1] Requesting logging variables...
[ INFO] [1512025054.711826820]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
[ INFO] [1512025054.717244919]: Found variables in cache.
[ INFO] [1512025054.719791569]: [cf1] reqLogTOC: 0.011714 s
[ INFO] [1512025054.745902666]: [cf1] logBlocks: 0.189417 s
[ INFO] [1512025054.745951597]: [cf1] Ready. Elapsed: 0.227507 s
[ INFO] [1512025054.745969717]: CF run: 0.227567 s
[ INFO] [1512025054.760458134]: [cf1] Update parameters
[ INFO] [1512025054.807255186]: Update params: 0.061227 s
[ INFO] [1512025054.807453970]: Started 1 threads
[ WARN] [1512025055.807868106]: No updated pose for motion capture object cf1
[ WARN] [1512025056.809077902]: No updated pose for motion capture object cf1
[ WARN] [1512025057.810285667]: No updated pose for motion capture object cf1
[ WARN] [1512025058.811459993]: No updated pose for motion capture object cf1
[ WARN] [1512025059.812140719]: No updated pose for motion capture object cf1
[ WARN] [1512025060.813365032]: No updated pose for motion capture object cf1
[ WARN] [1512025061.814513309]: No updated pose for motion capture object cf1
[ WARN] [1512025062.815658046]: No updated pose for motion capture object cf1
[ WARN] [1512025063.816799127]: No updated pose for motion capture object cf1
[ WARN] [1512025064.817468049]: No updated pose for motion capture object cf1
[ WARN] [1512025065.818669479]: No updated pose for motion capture object cf1
[ WARN] [1512025066.820116884]: No updated pose for motion capture object cf1


it seems that I have connected to the crazyflie but I can't get pose data from optitrack
and cf1 doesn't appear in rviz.
but I can get pose data from optitrack by vrpn_client_ros

Is there wrong setting in motive(optitrack)?
because crazyswarm uses Natnet,different from vrpn
thanks for your reply!!!

from crazyswarm.

murali2kk avatar murali2kk commented on August 16, 2024

@virtualclone : did you try using the libobjecttracker instead of motionCapture (of course you will have to update the /crazyflie_server/markerConfigurations/0/points/ according to your arrangement)? If so what happens then?

Note: Actually this and issue31 seem to be the same.

from crazyswarm.

whoenig avatar whoenig commented on August 16, 2024

One problem with the optitrack support is that it uses a 3rd party library on Linux (the official one only supports Windows). This 3rd party library was initially developed a few years back, and might be not fully compatible with the latest motive version.

How do you guys use optitrack with ROS otherwise? I am aware of VRPN, but VRPN does not support raw marker data. We could develop a VRPN backend for external object tracking though.

@naus3a: Did you ever test using tracking by optitrack? If so, which motive version did you test it with? Are you aware of a newer/different SDK for Linux/Mac for OptiTrack?

from crazyswarm.

chungshan avatar chungshan commented on August 16, 2024

@murali2kk ,thanks for your reply,I try libobjecttracker , and update markerConfigurations
and it seems to have the same problem
also I can't see crazyflie in rviz, and vicon.x , vicon.y remain at 0.

ncrl@ncrl:~/crazyswarm$ roslaunch crazyswarm hover_swarm.launch
... logging to /home/ncrl/.ros/log/45a46b3c-d587-11e7-a8ba-88d7f65412c4/roslaunch-ncrl-28307.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://192.168.1.203:45899/

SUMMARY
========

PARAMETERS
 * /crazyflie_manager/csv_file: /home/ncrl/crazys...
 * /crazyflie_manager/timescale: 0.8
 * /crazyflie_server/broadcast_address: FFE7E7E7E7
 * /crazyflie_server/dynamicsConfigurations/0/maxFitnessScore: 0.001
 * /crazyflie_server/dynamicsConfigurations/0/maxPitch: 1.4
 * /crazyflie_server/dynamicsConfigurations/0/maxPitchRate: 20.0
 * /crazyflie_server/dynamicsConfigurations/0/maxRoll: 1.4
 * /crazyflie_server/dynamicsConfigurations/0/maxRollRate: 20.0
 * /crazyflie_server/dynamicsConfigurations/0/maxXVelocity: 2.0
 * /crazyflie_server/dynamicsConfigurations/0/maxYVelocity: 2.0
 * /crazyflie_server/dynamicsConfigurations/0/maxYawRate: 10.0
 * /crazyflie_server/dynamicsConfigurations/0/maxZVelocity: 3.0
 * /crazyflie_server/enable_logging: True
 * /crazyflie_server/enable_parameters: True
 * /crazyflie_server/firmwareParams/ctrlMel/i_range_m_z: 1500
 * /crazyflie_server/firmwareParams/ctrlMel/i_range_xy: 2.0
 * /crazyflie_server/firmwareParams/ctrlMel/i_range_z: 0.4
 * /crazyflie_server/firmwareParams/ctrlMel/kR_xy: 70000
 * /crazyflie_server/firmwareParams/ctrlMel/kR_z: 60000
 * /crazyflie_server/firmwareParams/ctrlMel/kd_omega_rp: 200
 * /crazyflie_server/firmwareParams/ctrlMel/kd_xy: 0.2
 * /crazyflie_server/firmwareParams/ctrlMel/kd_z: 0.4
 * /crazyflie_server/firmwareParams/ctrlMel/ki_m_z: 500
 * /crazyflie_server/firmwareParams/ctrlMel/ki_xy: 0.05
 * /crazyflie_server/firmwareParams/ctrlMel/ki_z: 0.05
 * /crazyflie_server/firmwareParams/ctrlMel/kp_xy: 0.4
 * /crazyflie_server/firmwareParams/ctrlMel/kp_z: 1.25
 * /crazyflie_server/firmwareParams/ctrlMel/kw_xy: 20000
 * /crazyflie_server/firmwareParams/ctrlMel/kw_z: 12000
 * /crazyflie_server/firmwareParams/ctrlMel/mass: 0.032
 * /crazyflie_server/firmwareParams/ctrlMel/massThrust: 132000
 * /crazyflie_server/firmwareParams/flightmode/posCtrl: 1
 * /crazyflie_server/firmwareParams/ring/effect: 14
 * /crazyflie_server/firmwareParams/ring/headlightEnable: 0
 * /crazyflie_server/firmwareParams/ring/solidBlue: 20
 * /crazyflie_server/firmwareParams/ring/solidGreen: 0
 * /crazyflie_server/firmwareParams/ring/solidRed: 0
 * /crazyflie_server/force_no_cache: False
 * /crazyflie_server/genericLogTopicFrequencies: [10]
 * /crazyflie_server/genericLogTopic_log1_Variables: ['stabilizer.x', ...
 * /crazyflie_server/genericLogTopics: ['log1']
 * /crazyflie_server/interactive_object: active-wand
 * /crazyflie_server/markerConfigurations/0/numPoints: 3
 * /crazyflie_server/markerConfigurations/0/offset: [0.0, -0.01, -0.04]
 * /crazyflie_server/markerConfigurations/0/points/0: [0.011611, -0.069...
 * /crazyflie_server/markerConfigurations/0/points/1: [-0.007863, 0.052...
 * /crazyflie_server/markerConfigurations/0/points/2: [-0.066476, -0.00...
 * /crazyflie_server/motion_capture_type: optitrack
 * /crazyflie_server/numDynamicsConfigurations: 1
 * /crazyflie_server/numMarkerConfigurations: 1
 * /crazyflie_server/object_tracking_type: libobjecttracker
 * /crazyflie_server/optitrack_local_ip: 192.168.1.203
 * /crazyflie_server/optitrack_server_ip: 192.168.1.99
 * /crazyflie_server/print_latency: False
 * /crazyflie_server/save_point_clouds: ~/pointCloud.ot
 * /crazyflie_server/world_frame: /world
 * /crazyflie_server/write_csvs: False
 * /crazyflies: [{'initialPositio...
 * /joy/dev: /dev/input/js0
 * /rosdistro: kinetic
 * /rosversion: 1.12.7

NODES
  /
    crazyflie_manager (crazyflie_manager/crazyflie_manager)
    crazyflie_server (crazyflie_driver/crazyflie_server)
    joy (joy/joy_node)
    rqt (rqt_gui/rqt_gui)
    rqt_plot_yaw (rqt_plot/rqt_plot)
    rviz (rviz/rviz)

ROS_MASTER_URI=http://192.168.1.203:11311

core service [/rosout] found
process[crazyflie_server-1]: started with pid [28325]
NatNetClient connecting: 192.168.1.203 to 192.168.1.99...
WARNING: Could not set receive buffer size. Asked for 1048576B got 0B
[Client] Server Software: Motive
[Client] NatNetVersion: 2.10
[Client] ServerVersion: 1.10
NatNet server version: 1661053120
ch: 1
WARNING: Package "cfclient" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
process[joy-2]: started with pid [28395]
process[crazyflie_manager-3]: started with pid [28396]
[ INFO] [1512101887.920744820]: Adding CF: cf1 (radio://0/100/2M/E7E7E7E701, cf1)...
process[rviz-4]: started with pid [28409]
process[rqt-5]: started with pid [28426]
[ INFO] [1512101887.929711057]: CF ctor: 0.008895 s
process[rqt_plot_yaw-6]: started with pid [28438]
[ INFO] [1512101887.935325009]: Wait for services...
[ INFO] [1512101887.937794643]: Manager ready.
[ INFO] [1512101887.939182670]: [cf1] Requesting parameters...
[ INFO] [1512101887.947020343]: Found variables in cache.
[ INFO] [1512101888.076833735]: [cf1] reqParamTOC: 0.147049 s
[ INFO] [1512101888.076866421]: [cf1] Requesting logging variables...
[ INFO] [1512101888.084913838]: Found variables in cache.
[ INFO] [1512101888.085809268]: [cf1] reqLogTOC: 0.008992 s
[ INFO] [1512101888.101768193]: [cf1] logBlocks: 0.147049 s
[ INFO] [1512101888.101804464]: [cf1] Ready. Elapsed: 0.172046 s
[ INFO] [1512101888.101818125]: CF run: 0.172130 s
[ INFO] [1512101888.111820011]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
[ INFO] [1512101888.115434100]: [cf1] Update parameters
[ INFO] [1512101888.168425345]: Update params: 0.066572 s
[ INFO] [1512101888.168550042]: Started 1 threads
WARNING: Package "cfclient" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
WARNING: Package "cfclient" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
WARNING: Package "cfclient" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
WARNING: Package "cfclient" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
[ WARN] [1512101889.169668506]: No updated pose for motion capture object active-wand
[ WARN] [1512101889.169741814]: No updated pose for CF cf1 for 1512101889.169634 s.
[ WARN] [1512101890.170869345]: No updated pose for motion capture object active-wand
[ WARN] [1512101890.170900516]: No updated pose for CF cf1 for 1512101890.170843 s.
[ WARN] [1512101891.172185980]: No updated pose for motion capture object active-wand
[ WARN] [1512101891.172254209]: No updated pose for CF cf1 for 1512101891.172146 s.
[ WARN] [1512101892.173533065]: No updated pose for motion capture object active-wand
[ WARN] [1512101892.173576918]: No updated pose for CF cf1 for 1512101892.173498 s.
[ WARN] [1512101893.174855127]: No updated pose for motion capture object active-wand
[ WARN] [1512101893.174927172]: No updated pose for CF cf1 for 1512101893.174771 s.
[ WARN] [1512101894.175373466]: No updated pose for motion capture object active-wand
[ WARN] [1512101894.175497377]: No updated pose for CF cf1 for 1512101894.175259 s.
[ WARN] [1512101895.177148239]: No updated pose for motion capture object active-wand
[ WARN] [1512101895.177284244]: No updated pose for CF cf1 for 1512101895.177009 s.
[ WARN] [1512101896.178130253]: No updated pose for motion capture object active-wand
[ WARN] [1512101896.178176152]: No updated pose for CF cf1 for 1512101896.178089 s.
[ WARN] [1512101897.179405064]: No updated pose for motion capture object active-wand
[ WARN] [1512101897.179454797]: No updated pose for CF cf1 for 1512101897.179364 s.
[ WARN] [1512101898.180620828]: No updated pose for motion capture object active-wand
[ WARN] [1512101898.180689698]: No updated pose for CF cf1 for 1512101898.180582 s.
[ WARN] [1512101899.181799690]: No updated pose for motion capture object active-wand
[ WARN] [1512101899.181843861]: No updated pose for CF cf1 for 1512101899.181775 s.
[ WARN] [1512101900.183062507]: No updated pose for motion capture object active-wand
[ WARN] [1512101900.183126214]: No updated pose for CF cf1 for 1512101900.183017 s.
[ WARN] [1512101901.184288574]: No updated pose for motion capture object active-wand
[ WARN] [1512101901.184358176]: No updated pose for CF cf1 for 1512101901.184253 s.
[ WARN] [1512101902.185567532]: No updated pose for motion capture object active-wand
[ WARN] [1512101902.185632884]: No updated pose for CF cf1 for 1512101902.185509 s.
[ WARN] [1512101903.186849047]: No updated pose for motion capture object active-wand
[ WARN] [1512101903.186897526]: No updated pose for CF cf1 for 1512101903.186812 s.
[ WARN] [1512101904.187743068]: No updated pose for motion capture object active-wand
[ WARN] [1512101904.187774713]: No updated pose for CF cf1 for 1512101904.187717 s.
[ WARN] [1512101905.188935232]: No updated pose for motion capture object active-wand
[ WARN] [1512101905.188964517]: No updated pose for CF cf1 for 1512101905.188888 s.
[ WARN] [1512101906.190136298]: No updated pose for motion capture object active-wand
[ WARN] [1512101906.190198316]: No updated pose for CF cf1 for 1512101906.190113 s.
[ WARN] [1512101907.191761454]: No updated pose for motion capture object active-wand
[ WARN] [1512101907.191811216]: No updated pose for CF cf1 for 1512101907.191536 s.
[ WARN] [1512101908.192906851]: No updated pose for motion capture object active-wand
[ WARN] [1512101908.192957895]: No updated pose for CF cf1 for 1512101908.192884 s.
[ WARN] [1512101909.194136063]: No updated pose for motion capture object active-wand
[ WARN] [1512101909.194167137]: No updated pose for CF cf1 for 1512101909.194114 s.
[ WARN] [1512101910.195383897]: No updated pose for motion capture object active-wand
[ WARN] [1512101910.195428524]: No updated pose for CF cf1 for 1512101910.195345 s.
[ WARN] [1512101911.196568560]: No updated pose for motion capture object active-wand
[ WARN] [1512101911.196609967]: No updated pose for CF cf1 for 1512101911.196547 s.
[ WARN] [1512101912.197732959]: No updated pose for motion capture object active-wand
[ WARN] [1512101912.197773876]: No updated pose for CF cf1 for 1512101912.197696 s.
[ WARN] [1512101913.198991761]: No updated pose for motion capture object active-wand
[ WARN] [1512101913.199021502]: No updated pose for CF cf1 for 1512101913.198968 s.
[ INFO] [1512101913.814852323]: Takeoff!
[ WARN] [1512101914.200160054]: No updated pose for motion capture object active-wand
[ WARN] [1512101914.200194441]: No updated pose for CF cf1 for 1512101914.200107 s.
[ WARN] [1512101915.201370722]: No updated pose for motion capture object active-wand
[ WARN] [1512101915.201458285]: No updated pose for CF cf1 for 1512101915.201327 s.
[ WARN] [1512101916.202631035]: No updated pose for motion capture object active-wand
[ WARN] [1512101916.202685319]: No updated pose for CF cf1 for 1512101916.202609 s.
[ WARN] [1512101917.203952537]: No updated pose for motion capture object active-wand
[ WARN] [1512101917.204128590]: No updated pose for CF cf1 for 1512101917.203887 s.
[ WARN] [1512101918.205550876]: No updated pose for motion capture object active-wand
[ WARN] [1512101918.205634323]: No updated pose for CF cf1 for 1512101918.205476 s.
[ WARN] [1512101919.206932144]: No updated pose for motion capture object active-wand
[ WARN] [1512101919.207010358]: No updated pose for CF cf1 for 1512101919.206907 s.
[ WARN] [1512101920.208163608]: No updated pose for motion capture object active-wand
[ WARN] [1512101920.208228763]: No updated pose for CF cf1 for 1512101920.208137 s.
[ WARN] [1512101921.209174733]: No updated pose for motion capture object active-wand
[ WARN] [1512101921.209204599]: No updated pose for CF cf1 for 1512101921.209142 s.
[ WARN] [1512101922.210400282]: No updated pose for motion capture object active-wand
[ WARN] [1512101922.210432971]: No updated pose for CF cf1 for 1512101922.210344 s.
[ WARN] [1512101923.211484110]: No updated pose for motion capture object active-wand
[ WARN] [1512101923.211538123]: No updated pose for CF cf1 for 1512101923.211441 s.

from crazyswarm.

whoenig avatar whoenig commented on August 16, 2024

@virtualclone You can get rid of the active-wand warning by putting a # in front of https://github.com/USC-ACTLab/crazyswarm/blob/master/ros_ws/src/crazyswarm/launch/hover_swarm.launch#L60.

In rviz, do you see the point cloud of your markers? As you mentioned, it looks like you are connecting just fine, but there is something wrong with the tracking. If you see the point cloud, at least the communication with Motive would be working.

from crazyswarm.

chungshan avatar chungshan commented on August 16, 2024

@whoenig , I don't see point cloud in rviz
2017-12-01 13-24-04
2017-12-01 13-24-30
and I set like this,
I use three markers on my crazyflie and set markerConfigurations

numMarkerConfigurations: 1
      markerConfigurations:
        "0":
          numPoints: 3
          offset: [0.0, -0.01, -0.04]
          points:
            "0": [0.026096,-0.074674,0.004834]
            "1": [0.000946,0.045349,0.006044]
            "2": [-0.054784,-0.015370,0.005743]

from crazyswarm.

naus3a avatar naus3a commented on August 16, 2024

@whoenig unfortunately, as far as I know, the official Otitrack tools supports Windows only, so we had to look for a Linux alternative.
NatNetLinux was the most promising project we could find, so we made our fork and basically always used that.

from crazyswarm.

murali2kk avatar murali2kk commented on August 16, 2024

I was just testing the optitrack class in the libmotioncapture package independently. There seems to be some communication issue there when I try to read rigidbody pose data. The number of rigid bodies are 0.

@naus3a : did you ever test it with the rigidbody estimate of the cf from NatNetLinux? Or did you always use the libobjecttracker?

For me with libobjecttracker I do not see such a problem, the point cloud is being updated continuously.

Note: The updated Motive 2.0 now uses NatNet 3.0, and the bit stream syntax is changed. So NatNetLinux throws up a segfault there. Yet, we are all using Motive 1.10, and NatNet 2.1 on the server side, so that should technically not be an issue.

I shall dig deeper early next week to find more.

from crazyswarm.

chungshan avatar chungshan commented on August 16, 2024

@murali2kk , can you use libobjecttracker to control the crazyflie?
because I set like what I said on the above reply.
but as you can see,I cannot see my crazyflie in rviz.
Is there anything wrong with my setting?
thanks!

from crazyswarm.

naus3a avatar naus3a commented on August 16, 2024

@murali2kk we used libojecttracker most of the time, but I remember we did a few NatNetLinux only experiments when we first investigated the library.

from crazyswarm.

murali2kk avatar murali2kk commented on August 16, 2024

@virtualclone : Your settings on the crazyswarm front must be correct if you are seeing this part when you launch:

NatNetClient connecting: 192.168.1.203 to 192.168.1.99...
WARNING: Could not set receive buffer size. Asked for 1048576B got 0B
[Client] Server Software: Motive
[Client] NatNetVersion: 2.10
[Client] ServerVersion: 1.10
NatNet server version: 1661053120

On the OptiTrack front, check for your data stream settings on Motive -- I set the labelled and unlabelled markers to be True, with the Rigid bodies off, and using Multicast option. I would suggest fiddling around there to see if you can visualize the pointCloud on rviz. (I can tell you what exactly I used after I return to work next week).

Note: I have not been able to control my cf either, yet. I am at a stage where I can visualize the point cloud and the cf on rviz.

from crazyswarm.

jpreiss avatar jpreiss commented on August 16, 2024

@murali2kk @virtualclone are you still having problems using OptiTrack?

from crazyswarm.

murali2kk avatar murali2kk commented on August 16, 2024

The motionCapture for OptiTrack cannot work. The function getObjects is incomplete. I tried to fix it, but seems that NatNetLinux used here does not get the name of the rigidbody but the id manually set on Motive. So, one needs to map the id to the cf-name to fix this. I would do it at a later point, if I get crazyswarm working.

I got the libobjecttracker working though. A couple of notes for anyone who uses OptiTrack, and could not get this working:

  • This is incompatible with the latest Motive (2.0) because it uses NatNet 3.0.1 which has a different bit-steam syntax.
  • Use an older version (Motive 1.10.3 works for me).
  • Have the rigid body un-ticked on Motive so that the point cloud is streamed.
  • Update to the latest version of libmotioncapture branch of the NatNetLinux.

from crazyswarm.

whoenig avatar whoenig commented on August 16, 2024

I updated NatNetLinux to the latest version of libmotioncapture and added the other instructions to the documentation (http://crazyswarm.readthedocs.io/en/latest/usage.html#optitrack).

from crazyswarm.

gitsr-sys avatar gitsr-sys commented on August 16, 2024

@murali2kk
Hi, I have one question about "Have the rigid body un-ticked on Motive so that the point cloud is streamed."

Do you mean that it needs to set "Stream Rigid Bodies" in Streamin > OptiTrack Streaming Engine > Streaming Setting as "False"?

from crazyswarm.

murali2kk avatar murali2kk commented on August 16, 2024

@srnetsr

I used the following which worked, at least with two cfs. I created the rigid bodies, but unchecked them in the Assets pane. I was still streaming everything though.

I am not sure if this is equivalent to making the stream setting to false, because then, Motive might not stream the markers associated with this rigid body.

from crazyswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.