Mocap data is not updated. (using Optitrack) #458
Unanswered
WoodyloveBo
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Is the robot an |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello.
When you run ros2 launch crazyflie launch.py, Crazyradio connects for a moment (green light) and then turns off and the following error continues to appear. I'm using two PCs, and on one PC I'm using Motive to track markers. The remaining one receives the motive data and moves the robot with ROS2.
As a result of using NatetSDKCrossPlatform, there appears to be no problem in receiving parameters. However, if you only use ros2 launch crazyflie launch.py, the cf3 pose will not be updated.
NatnetSDK_data.webm
My yaml files are as follows:
crazyflies.yaml
named list of all robots
robots:
cf3:
enabled: true
uri: radio://0/100/2M/E7E7E7E703
initial_position: [0, 0, 0]
type: cf21 # see robot_types
# firmware_params:
# kalman:
# pNAcc_xy: 1.0 # default 0.5
# firmware_logging:
# enabled: true
# custom_topics:
# topic_name3:
# frequency: 1
# vars: ["acc.x", "acc.y"]
cf5:
enabled: false
uri: radio://0/80/2M/E7E7E7E705
initial_position: [0, -0.5, 0]
type: cf21 # see robot_types
# firmware_params:
# kalman:
# pNAcc_xy: 1.0 # default 0.5
#firmware_logging:
# custom_topics:
# topic_name3:
# frequency: 1
# vars: ["acc.x", "acc.y", "acc.z"]
Definition of the various robot types
robot_types:
cf21:
motion_capture:
enabled: true
# only if enabled; see motion_capture.yaml
marker: default
dynamics: default
big_quad: false
battery:
voltage_warning: 3.8 # V
voltage_critical: 3.7 # V
# firmware_params:
# kalman:
# pNAcc_xy: 1.0 # default 0.5
#firmware_logging:
# enabled: true
# default_topics:
# pose:
# frequency: 1 # Hz
# custom_topics:
# topic_name3:
# frequency: 1
# vars: ["acc.x", "acc.y", "acc.z"]
cf21_mocap_deck:
motion_capture:
enabled: true
# only if enabled; see motion_capture.yaml
marker: mocap_deck
dynamics: default
big_quad: false
battery:
voltage_warning: 3.8 # V
voltage_critical: 3.7 # V
global settings for all robots
all:
firmware logging for all drones (use robot_types/type_name to set per type, or
robots/drone_name to set per drone)
firmware_logging:
enabled: true
default_topics:
# remove to disable default topic
pose:
frequency: 10 # Hz
status:
frequency: 1 # Hz
#custom_topics:
# topic_name1:
# frequency: 10 # Hz
# vars: ["stateEstimateZ.x", "stateEstimateZ.y", "stateEstimateZ.z", "pm.vbat"]
# topic_name2:
# frequency: 1 # Hz
# vars: ["stabilizer.roll", "stabilizer.pitch", "stabilizer.yaw"]
firmware parameters for all drones (use robot_types/type_name to set per type, or
robots/drone_name to set per drone)
firmware_params:
commander:
enHighLevel: 1
stabilizer:
estimator: 2 # 1: complementary, 2: kalman
controller: 2 # 1: PID, 2: mellinger
# ring:
# effect: 16 # 6: double spinner, 7: solid color, 16: packetRate
# solidBlue: 255 # if set to solid color
# solidGreen: 0 # if set to solid color
# solidRed: 0 # if set to solid color
# headlightEnable: 0
locSrv:
extPosStdDev: 1e-3
extQuatStdDev: 0.5e-1
# kalman:
# resetEstimation: 1
broadcasts:
num_repeats: 15 # number of times broadcast commands are repeated
delay_between_repeats_ms: 1 # delay in milliseconds between individual repeats
motion_capture.yaml
/motion_capture_tracking:
ros__parameters:
type: "optitrack"
hostname: "192.168.0.15"
I would appreciate it if you could let me know what the problem is.
Beta Was this translation helpful? Give feedback.
All reactions