motioncapture error & coordinate error #387
Answered
by
whoenig
AlEXANDER9901
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for the prompt response.
|
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
-
Hi. I am having difficulty flying a single crazyflie. I have attached the necessary information below.
[1. 'ros2 launch crazyflie launch.py' and 'rviz2' ]
The attached images show the rviz2 screen and error messages when executing 'ros2 launch crazyflie launch.py' and 'rviz2.' Previously, I received a "motion capture did not receive data" message, but now I see a WARN "Motion capture rate off." What could be the cause of this message? and I have correctly configured the IP.
[2. Confirmation of 'ros2 topic echo /poses']
It seems that the pose of the crazyflie is being tracked correctly. I think the connection is fine, but it seems that the coordinate axes might be misaligned.
[3. Motive]
Despite aligning the crazyflie and world coordinates as shown in the pictures, they appear differently in rviz.
[4. yaml파일]
Below is my code configuration. Please advise if there are any mistakes.
`# named list of all robots
robots:
cf10:
enabled: true
uri: radio://0/80/2M/E7E7E7E710
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: false
# 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: false
default_topics:
# remove to disable default topic
pose:
frequency: 10 # 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: 1 # 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`
2)motion_capture.yaml
`/motion_capture_tracking:
ros__parameters:
type: "optitrack"
hostname: "192.168.0.81"
`/crazyflie_server:
ros__parameters:
warnings:
frequency: 1.0 # report/run checks once per second
motion_capture:
warning_if_rate_outside: [80.0, 120.0]
communication:
max_unicast_latency: 10.0 # ms
firmware_params:
query_all_values_on_connect: False
simulation related
sim:max_dt: 0 #0.1 # artificially limit the step() function (set to 0 to disable)
backend: np # see backend folder for a list
visualizations: # see visualization folder for a list
rviz:
enabled: true
pdf:
enabled: false
output_file: "result.pdf"
record_states:
enabled: false
output_dir: "state_info"
logging_time: 0.2 # how many seconds to leave between logs
file_formats: ["csv", "np"] # csv, np
blender:
enabled: false
fps: 1 # frames per second
cycle_bg: false # if true, pictures will cycle through different environemt background images (useful for synthetic image generation). Otherwise a single environment background image will be used
cf_cameras: # names of crazyflies with cameras on them if enabled in
crazyflies.yaml
cf10:
calibration:
tvec: [0,0,0]
rvec: [1.2092,-1.2092,1.2092] # 0 deg tilt (cameras looks in front of crazyflie)
cf5:
calibration:
tvec: [0,0,0]
rvec: [ 0.61394313, -0.61394313, 1.48218982] # 45 deg tilt
controller: pid # none, pid, mellinger`
I look forward to your response.
Beta Was this translation helpful? Give feedback.
All reactions