Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Quadcopter made up of cylinders/fixed joints causes IMU problems in gazebo9 with lib gazebo_imu_plugin

$
0
0
I understand this may be a px4 issue and I'll post it to their forums, but I'm wondering if anyone knows what I am doing wrong. I am working on a quadcopter model. Initially I modified the 3DR Solo model to just change the mesh, inertia, and rotor joints to match my geometry. The aircraft flies fine (other than poorly tuned controller gains). I wanted the motors modelled, since they currently aren't in my mesh so I added in 4 cylinders attached to the base with fixed joints. When I do this I get a bunch of IMU problems and the accelerometers reading incorrect values. > pxh> INFO [mavlink] partner IP: 127.0.0.1 INFO [ecl/EKF] EKF aligned, (pressure height, IMU buf: 22, OBS buf: 14) [Wrn] [GuiIface.cc:120] Failed to get QCocoaScreen for NSObject(0x0) [Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/quad_x_custom/motor_speed/3, deleting message. This warning is printed only once. WARN [commander] Preflight Fail: Accel Range, hold still on arming [Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/quad_x_custom/motor_speed/1, deleting message. This warning is printed only once. INFO [ecl/EKF] EKF GPS checks passed (WGS-84 origin set) INFO [ecl/EKF] EKF commencing GPS fusion WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro [Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/quad_x_custom/motors, deleting message. This warning is printed only once. [Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/quad_x_custom/motor_speed/2, deleting message. This warning is printed only once. WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro WARN [ecl/EKF] EKF baro hgt timeout - reset to baro px4>sensors status INFO [sensors] gyro status: INFO [ecl/validation] validator: best: 0, prev best: 0, failsafe: NO (0 events) INFO [ecl/validation] sensor #0, prio: 100, state: OK INFO [ecl/validation] val: -0.0238, lp: -0.0377 mean dev: 0.0000 RMS: 0.0086 conf: 1.0000 INFO [ecl/validation] val: -0.0310, lp: -0.0137 mean dev: 0.0001 RMS: 0.0084 conf: 1.0000 INFO [ecl/validation] val: -0.0096, lp: -0.0122 mean dev: -0.0001 RMS: 0.0083 conf: 1.0000 INFO [sensors] accel status: INFO [ecl/validation] validator: best: 0, prev best: 0, failsafe: NO (0 events) INFO [ecl/validation] sensor #0, prio: 100, state: OK INFO [ecl/validation] val: -0.0478, lp: 0.0485 mean dev: 0.0037 RMS: 0.1045 conf: 1.0000 INFO [ecl/validation] val: -2.4719, lp: -2.5461 mean dev: 0.0070 RMS: 0.1087 conf: 1.0000 INFO [ecl/validation] val: -2.4057, lp: -2.4644 mean dev: 0.1297 RMS: 0.9791 conf: 1.0000 Here is the model that works: 0 0 0 0 0 1.570 0 0 0 0 00.3200.000785000.0010100.0017790 0 -0.04 0 0 00.32 0.32 0.180.00100 0 0 0 0 01 1 1model://quad_x_custom/meshes/quad_x_custom.stl100 0 0 0 0 00 0 0 0 0 00.0151e-05001e-0501e-05imu_linkbase_link1 0 00000001.3600.0002041000.000935400.00093540 -0 0 0 0 00 -0 -0.0275 0 -0 010000 -0 0 0 -0 00.1 0.035 0.03510.3 0.3 0.3 10.7 0.7 0.7 10.01 0.01 0.01 10 0 0 1010100 -0 0 0 -0 00.1 0.035 0.035base_linkbattery0 0 -0.0275 0 -0 00.1 -0.1 0.02 0 0 00 0 0 0 0 00.0059.75e-07000.00027310400.0002740040 0 0 0 0 00.0050.06350 0 0 0 0 01 1 1model://quad_x_custom/meshes/prop_ccw.stl10rotor_0base_link0 0 1-1e+161e+16001-0.1 0.1 0.02 0 0 00 0 0 0 0 00.0059.75e-07000.00027310400.0002740040 0 0 0 0 00.0050.06350 0 0 0 0 01 1 1model://quad_x_custom/meshes/prop_ccw.stl10rotor_1base_link0 0 1-1e+161e+160010.1 0.1 0.02 0 0 00 0 0 0 0 00.0059.75e-07000.00027310400.0002740040 0 0 0 0 00.0050.06350 0 0 0 0 01 1 1model://quad_x_custom/meshes/prop_cw.stl10rotor_2base_link0 0 1-1e+161e+16001-0.1 -0.1 0.02 0 0 00 0 0 0 0 00.0059.75e-07000.00027310400.0002740040 0 0 0 0 00.0050.06350 0 0 0 0 01 1 1model://quad_x_custom/meshes/prop_cw.stl10rotor_3base_link0 0 1-1e+161e+16001base_link10rotor_0_jointrotor_0ccw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed00.0008064281e-06/motor_speed/010rotor_1_jointrotor_1ccw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed10.0008064281e-06/motor_speed/110rotor_2_jointrotor_2cw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed20.0008064281e-06/motor_speed/210rotor_3_jointrotor_3cw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed30.0008064281e-06/motor_speed/310true/imu/gpsINADDR_ANY14560false/dev/ttyACM0921600INADDR_ANY14550falsefalse/gazebo/command/motor_speed0012000100velocity1012000100velocity2012000100velocity3012000100velocity0imu_link/imu0.00033943.8785e-051000.00.00870.0040.006300.00.196 When I add "motors" as fixed joints it doesn't work: 010 0 0 0 -0 00 0 0 0 -0 00.320.000785000.0010100.00177910000 0 0 0 -0 01 1 1model://quad_x_custom/meshes/quad_x_custom.stl010100 0 -0.04 0 -0 00.32 0.32 0.180.360.0002041000.000935400.00093540 -0 0 0 -0 0-0 0 -0.0275 0 -0 010000 -0 0 0 -0 00.1 0.035 0.0351__default__0.3 0.3 0.3 10.7 0.7 0.7 10.01 0.01 0.01 10 0 0 1010100 0 0 0 -0 00.1 0.035 0.035base_linkbattery0 0 -0.0275 0 -0 000.200.20 0 0 0 -0 00 0 0 0 -0 00.0151e-05001e-0501e-05000base_linkimu_link0 0 0 0 -0 01 0 010000000000.200.20.070.00013125000.0001312500.00011250 0 0 0 -0 00.1 -0.1 -0 0 -0 010000 0 0.015 0 -0 00.0130.0151__default__0.3 0.3 0.3 10.7 0.7 0.7 10.01 0.01 0.01 10 0 0 1010100 0 0 0 -0 00.0130.015base_linkmotor_00.1 -0.1 0.02 0 -0 000.200.20.070.00013125000.0001312500.00011250 0 0 0 -0 0-0.1 0.1 -0 0 -0 010000 0 0.015 0 -0 00.0130.0151__default__0.3 0.3 0.3 10.7 0.7 0.7 10.01 0.01 0.01 10 0 0 1010100 0 0 0 -0 00.0130.015base_linkmotor_1-0.1 0.1 0.02 0 -0 000.200.20.070.00013125000.0001312500.00011250 0 0 0 -0 00.1 0.1 -0 0 -0 010000 0 0.015 0 -0 00.0130.0151__default__0.3 0.3 0.3 10.7 0.7 0.7 10.01 0.01 0.01 10 0 0 1010100 0 0 0 -0 00.0120.015base_linkmotor_20.1 0.1 0.02 0 -0 000.200.20.070.00013125000.0001312500.00011250 0 0 0 -0 0-0.1 -0.1 -0 0 -0 010000 0 0.015 0 -0 00.0130.0151__default__0.3 0.3 0.3 10.7 0.7 0.7 10.01 0.01 0.01 10 0 0 1010100 0 0 0 -0 00.0130.015base_linkmotor_3-0.1 -0.1 0.02 0 -0 000.200.20.1 -0.1 0.025 0 -0 00 0 0 0 -0 00.0059.75e-07000.00027310400.00027400410000 0 0 0 -0 01 1 1model://quad_x_custom/meshes/prop_ccw.stl010100 0 0 0 -0 00.06350.005-0.1 0.1 0.025 0 -0 00 0 0 0 -0 00.0059.75e-07000.00027310400.00027400410000 0 0 0 -0 01 1 1model://quad_x_custom/meshes/prop_ccw.stl010100 0 0 0 -0 00.06350.0050.1 0.1 0.025 0 -0 00 0 0 0 -0 00.0059.75e-07000.00027310400.00027400410000 0 0 0 -0 01 1 1model://quad_x_custom/meshes/prop_cw.stl010100 0 0 0 -0 00.06350.005-0.1 -0.1 0.025 0 -0 00 0 0 0 -0 00.0059.75e-07000.00027310400.00027400410000 0 0 0 -0 01 1 1model://quad_x_custom/meshes/prop_cw.stl010100 0 0 0 -0 00.06350.005motor_0rotor_00 0 0 0 -0 00 0 11-1e+161e+16-1-1000000.200.2motor_1rotor_10 0 0 0 -0 00 0 11-1e+161e+16-1-1000000.200.2motor_2rotor_20 0 0 0 -0 00 0 11-1e+161e+16-1-1000000.200.2motor_3rotor_30 0 0 0 -0 00 0 11-1e+161e+16-1-1000000.200.2rotor_1_jointrotor_1ccw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed10.0008064281e-06/motor_speed/110rotor_3_jointrotor_3cw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed30.0008064281e-06/motor_speed/310rotor_2_jointrotor_2cw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed20.0008064281e-06/motor_speed/210rotor_0_jointrotor_0ccw0.01250.02515008.54858e-060.06/gazebo/command/motor_speed00.0008064281e-06/motor_speed/010imu_link/imu0.00033943.8785e-051000.00.00870.0040.006300.00.1961/imu/gpsINADDR_ANY145600/dev/ttyACM0921600INADDR_ANY1455000/gazebo/command/motor_speed0012000100velocity1012000100velocity2012000100velocity3012000100velocitybase_link10

Viewing all articles
Browse latest Browse all 7017

Latest Images

Trending Articles



Latest Images