Problem with Multiple CF on Crazyswarm hover_swarm #451
Unanswered
tbaranoski
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You are configured to use channels 100 and 110. Are you using two crazyradios? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two crazyflies I am trying to hook up to the crazyswarm hover_swarm. My end goal is too use ROS to share CF#1 sensory information with CF#2. I do not intend to fly CF#2. I am not using any tracking systems. I am running into errors when trying to use two CF with hover_swarm. Any help would be appreciated.
CF
#1
has a flow deck. Address: 0xE7E7E7E701 0/100/2MCF
#2
does not have a flow deck. Address: 0xE7E7E7E701 0/110/2MMy allCrazyflies.yaml file look like:
`crazyflies:
#1
channel: 100
#100
initialPosition: [1.5, 1.5, 0.0]
type: medium
channel: 110
initialPosition: [-1.0, -0.5, 0.0]
type: medium
`
I used chooser.py to select both check boxes for both CF#1 and CF#2. crazylies.yaml reflect these changes. However I get errors while running hover_swarm. The terminal output is shown below. To me, it looks like CF#1 connects to ROS server fine but CF#2 does not. Both CF#1 and CF#2 works on hover_swarm when they are the only CF.
`roslaunch crazyswarm hover_swarm.launch
... logging to /home/bitcraze/.ros/log/dbf8c564-f6d1-11eb-a8eb-5be5295ad037/roslaunch-ubuntu-3053.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://ubuntu:41359/
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 [3080]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to dbf8c564-f6d1-11eb-a8eb-5be5295ad037
process[rosout-1]: started with pid [3097]
started core service [/rosout]
process[crazyswarm_server-2]: started with pid [3104]
process[joy-3]: started with pid [3105]
process[crazyswarm_teleop-4]: started with pid [3106]
[ERROR] [1628266678.087697095]: Couldn't open joystick /dev/input/js2. Will retry every second.
process[rviz-5]: started with pid [3107]
[ INFO] [1628266678.119136155]: Wait for services...
[ INFO] [1628266678.119994068]: waitForService: Service [/emergency] has not been advertised, waiting...
[ INFO] [1628266678.544976960]: waitForService: Service [/emergency] is now available.
[ INFO] [1628266678.546689580]: Manager ready.
ch: 2
[ INFO] [1628266678.677893866]: Adding CF: cf1 (radio://0/100/2M/E7E7E7E701, cf1)...
[ INFO] [1628266678.723732460]: CF ctor: 0.045039 s
[ INFO] [1628266678.760705388]: [cf1] SYS: ----------------------------
[ INFO] [1628266678.780288223]: [cf1] SYS: Crazyflie 2.1 is up and running!
[ INFO] [1628266678.802749335]: [cf1] SYS: Build 11:0864ef92245a (2021.03 +11) CLEAN
[ INFO] [1628266678.837828947]: [cf1] SYS: I am 0x20383347344D50080030004D and I have 1024KB of flash!
[ INFO] [1628266678.849535604]: [cf1] CFGBLK: v1, verification [OK]
[ INFO] [1628266678.861204720]: [cf1] DECK_CORE: 2 deck(s) found
[ INFO] [1628266678.883525080]: [cf1] DECK_CORE: Calling INIT on driver bcFlow2 for deck 0
[ INFO] [1628266678.894505518]: [cf1] ZR2: Z-down sensor [OK]
[ INFO] [1628266678.917370859]: [cf1] PMW: Motion chip id: 0x49:0xB6
[ INFO] [1628266678.939536450]: [cf1] DECK_CORE: Calling INIT on driver bcMultiranger for deck 1
[ INFO] [1628266678.959898134]: [cf1] IMU: BMI088: Using I2C interface.
[ INFO] [1628266678.982338164]: [cf1] IMU: BMI088 Gyro connection [OK].
[ INFO] [1628266679.004211997]: [cf1] IMU: BMI088 Accel connection [OK]
[ INFO] [1628266679.025659046]: [cf1] IMU: BMP388 I2C connection [OK]
[ INFO] [1628266679.048826512]: [cf1] ESTIMATOR: Using Kalman (2) estimator
[ INFO] [1628266679.071435184]: [cf1] CONTROLLER: Using PID (1) controller
[ INFO] [1628266679.093989414]: [cf1] MTR-DRV: Using brushed motor driver
[ INFO] [1628266679.104773325]: [cf1] EEPROM: I2C connection [OK].
[ INFO] [1628266679.115435891]: [cf1] STORAGE: Storage check [OK].
[ INFO] [1628266679.135967237]: [cf1] IMU: BMI088 gyro self-test [OK]
[ INFO] [1628266679.147724473]: [cf1] DECK_CORE: Deck 0 test [OK].
[ INFO] [1628266679.158467365]: [cf1] MR: Init front sensor [OK]
[ INFO] [1628266679.170131545]: [cf1] MR: Init back sensor [OK]
[ INFO] [1628266679.179862834]: [cf1] MR: Init up sensor [OK]
[ INFO] [1628266679.189571380]: [cf1] MR: Init left sensor [OK]
[ INFO] [1628266679.201388034]: [cf1] MR: Init right sensor [OK]
[ INFO] [1628266679.213037576]: [cf1] DECK_CORE: Deck 1 test [OK].
[ INFO] [1628266679.238437240]: [cf1] STAB: Wait for sensor calibration...
[ INFO] [1628266679.250245928]: [cf1] SYS: Free heap: 16352 bytes
[ INFO] [1628266679.262853509]: [cf1] STAB: Ready to fly.
[ INFO] [1628266679.278519650]: [cf1] Requesting parameters...
[ INFO] [1628266679.737008621]: Found variables in cache.
[ INFO] [1628266682.566957313]: [cf1] reqParamTOC: 3.843128 s (229 params)
[ INFO] [1628266682.567034474]: [cf1] Requesting logging variables...
[ INFO] [1628266682.601586532]: Found variables in cache.
[ INFO] [1628266682.602777832]: [cf1] reqLogTOC: 0.035872 s
[ INFO] [1628266682.667187008]: [cf1] logBlocks: 3.843128 s
[ INFO] [1628266682.745207394]: Requesting memories...
[ INFO] [1628266682.838331526]: Memories: 6
[ INFO] [1628266683.148241669]: [cf1] Ready. Elapsed: 4.424458 s
[ INFO] [1628266683.148274714]: CF run: 4.424558 s
update commander/enHighLevel to 1
update kalman/resetEstimation to 1
update locSrv/extPosStdDev to 0.001
update locSrv/extQuatStdDev to 0.05
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 2
update ctrlMel/i_range_m_z to 1500
update ctrlMel/i_range_xy to 2
update ctrlMel/i_range_z to 2
update ctrlMel/kR_xy to 50000
update ctrlMel/kR_z to 60000
update ctrlMel/kd_omega_rp to 200
update ctrlMel/kd_xy to 1
update ctrlMel/kd_z to 1
update ctrlMel/ki_m_z to 500
update ctrlMel/ki_xy to 0.1
update ctrlMel/ki_z to 0.5
update ctrlMel/kp_xy to 2
update ctrlMel/kp_z to 3
update ctrlMel/kw_xy to 16000
update ctrlMel/kw_z to 12000
update ctrlMel/mass to 0.11
update ctrlMel/massThrust to 23000
[ INFO] [1628266683.161499130]: [cf1] Update parameters
[ INFO] [1628266683.829707076]: [cf1] CONTROLLER: Using Mellinger (2) controller
[ INFO] [1628266684.263032549]: Update params: 1.114728 s
terminate called after throwing an instance of 'std::runtime_error'
what(): No matching USB Device with devid = 1 found! Do you have a Crazyradio dongle connected?
[crazyswarm_server-2] process has died [pid 3104, exit code -6, cmd /home/bitcraze/crazyswarm/ros_ws/devel/lib/crazyswarm/crazyswarm_server __name:=crazyswarm_server __log:=/home/bitcraze/.ros/log/dbf8c564-f6d1-11eb-a8eb-5be5295ad037/crazyswarm_server-2.log].
log file: /home/bitcraze/.ros/log/dbf8c564-f6d1-11eb-a8eb-5be5295ad037/crazyswarm_server-2*.log
^C[rviz-5] killing on exit
`
In addition I am trying to look at the crazyswarm_server-2*.log and it is no where in the directory. Below is a snapshot of the directory (including hidden files). Any reason why the log file is not showing up?
Beta Was this translation helpful? Give feedback.
All reactions