Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # For parameter descriptions, please refer to the template parameter files for each node.
- ekf_filter_node_odom:
- ros__parameters:
- frequency: 20.0 #50.0
- two_d_mode: true # Recommended to use 2d mode for nav2 in mostly planar environments
- publish_acceleration: true #false
- print_diagnostics: false #true
- debug: false #true
- reset_on_time_jump: true #false
- transform_timeout: 1.0 #0.25 # Typical value: 0.1-0.5 seconds. Time to wait for a transform.
- sensor_timeout: 0.5 #1.0 # 0.25 # Typical value: 0.1-0.5 seconds. Tolerance for sensor synchronization.
- use_sim_time: false
- # 1. Set the map_frame, odom_frame, and base_link frames to the appropriate frame names for your system.
- # 1a. If your system does not have a map_frame, just remove it, and make sure "world_frame" is set to the value of odom_frame.
- # 2. If you are fusing continuous position data such as wheel encoder odometry, visual odometry, or IMU data, set "world_frame"
- # to your odom_frame value. This is the default behavior for robot_localization's state estimation nodes.
- # 3. If you are fusing global absolute position data that is subject to discrete jumps (e.g., GPS or position updates from landmark
- # observations) then:
- # 3a. Set your "world_frame" to your map_frame value
- # 3b. MAKE SURE something else is generating the odom->base_link transform. Note that this can even be another state estimation node
- #
- map_frame: map
- odom_frame: odom
- base_link_frame: base_footprint # the frame id used by the turtlebot's diff drive plugin
- world_frame: odom #map if use map the robot truck will move along the navsat arrow (green arrow on mapviz), otherwise if set to 'odom' frame, it is going to do as a clock's point
- # 'odom' just work if uses 'odometry/global' as odom0 in ekf_filter_node_map. If use 'odometry/local' or 'odom' must set to map here.
- publish_tf: true
- odom0: '' #/odom
- odom0_config: [false, false, false, # Position X, Y, Z
- false, false, false, # Orientation roll, pitch, yaw (only yaw is used)
- false, false, false, # Velocity X dot, Y dot, Z dot
- false, false, false, # Angular Velocity roll dot, pitch dot, yaw dot
- false, false, false] # Acceleration X double dot, Y double dot, Z double dot
- odom0_differential: false # Typically false for odometry, as it's usually more accurate.
- odom0_nodelay: true # Ignore delays in the odometry data.
- odom0_relative: false
- odom0_queue_size: 10
- imu0: /imu # /imu_heading_novo #/imu
- imu0_config: [false, false, false, # Position X, Y, Z
- false, false, true, # Orientation roll, pitch, yaw (only yaw is used)
- false, false, false, # Velocity X dot, Y dot, Z dot
- false, false, true, # Angular Velocity roll dot, pitch dot, yaw dot
- false, false, false] # Acceleration X double dot, Y double dot, Z double dot
- imu0_differential: false #true # Set to true for real robot IMU data due to typical inaccuracies.
- # If using a real robot you might want to set this to true, since usually absolute measurements from real imu's are not very accurate
- imu0_nodelay: true # Ignore delays in the imu data.
- imu0_relative: false
- imu0_queue_size: 100
- imu0_remove_gravitational_acceleration: true
- use_control: false
- process_noise_covariance: [
- 0.05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.025, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0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0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1e-9, 0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0
- ]
- ekf_filter_node_map:
- ros__parameters:
- use_sim_time: false
- sensor_timeout: 0.5 #2.0 #1.0 # 0.25 # Typical value: 0.1-0.5 seconds. Tolerance for sensor synchronization.
- transform_time_offset: 0.0 # Typical value: 0.0 seconds. Time offset for transforms.
- transform_timeout: 2.0 #1.0 #0.25 # Typical value: 0.1-0.5 seconds. Time to wait for a transform.
- frequency: 20.0 #50.0
- two_d_mode: true #false # Recommended to use 2d mode for nav2 in mostly planar environments
- #print_diagnostics: true
- publish_acceleration: true
- debug: false #true
- publish_tf: true
- reset_on_time_jump: true #false
- map_frame: map
- odom_frame: odom
- base_link_frame: base_footprint # the frame id used by the turtlebot's diff drive plugin
- world_frame: map
- odom0: '' #/odometry/global #/odometry/filtered #/odometry/local #odom # # = "fused odometry + Imu in previous node"
- odom0_config: [false, false, false, # Position X, Y, Z
- false, false, false, # Orientation roll, pitch, yaw (only yaw is used)
- false, false, false, # Velocity X dot, Y dot, Z dot
- false, false, false, # Angular Velocity roll dot, pitch dot, yaw dot
- false, false, false] # Acceleration X double dot, Y double dot, Z double dot
- odom0_queue_size: 10
- odom0_nodelay: true
- odom0_differential: false # Typically false for odometry, as it's usually more accurate.
- odom0_relative: false
- imu0: /imu #/imu_heading_novo #/imu
- imu0_config: [false, false, false, # Position X, Y, Z
- false, false, true, # Orientation roll, pitch, yaw (only yaw is used)
- false, false, false, # Velocity X dot, Y dot, Z dot
- false, false, true, # Angular Velocity roll dot, pitch dot, yaw dot
- false, false, false] # Acceleration X double dot, Y double dot, Z double dot
- imu0_differential: false #true # Set to true for real robot IMU data due to typical inaccuracies.
- imu0_nodelay: true #false # Ignore delays in the imu data.
- imu0_relative: false
- imu0_queue_size: 100
- imu0_remove_gravitational_acceleration: true
- #O problema esta aqui, o gazebo publica gps namespace, porém ele deve poder englobar diferentes tipos de dados (Odometry) e também receber o (NavSatFix). Já quando eu uso real_gps/fix aqui
- #Eu envio apeans NavSatFix, mas não tenho um namespace para receber outros tipos de mensagens que vem da Fusão anterior (odometry/local) que o ekf_filter_node_odom está entregaando.
- odom1: odometry/gps # try gps if not fix
- odom1_config: [true, true, false, # Position X, Y, Z
- false, false, false, # Orientation roll, pitch, yaw (only yaw is used)
- false, false, false, # Velocity X dot, Y dot, Z dot
- false, false, false, # Angular Velocity roll dot, pitch dot, yaw dot
- false, false, false] # Acceleration X double dot, Y double dot, Z double dot
- odom1_queue_size: 100
- odom1_nodelay: true # Ignore delays in the odometry/gps data.
- odom1_differential: false # Typically false for odometry, as it's usually more accurate.
- odom1_relative: false
- odom1_pose_rejection_threshold: 5.0 #1.0 #2.0
- odom1_twist_rejection_threshold: 1.0
- use_control: false
- process_noise_covariance: [
- 0.05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0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0.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0, 0.0,
- 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0
- ]
- navsat_transform:
- ros__parameters:
- use_sim_time: false
- frequency: 50.0 # Increased frequency to match other nodes #10.0
- delay: 3.0 # Typical value: 0.0-3.0 seconds. Accounts for delay in the sensor data. GPS usually has inherent delays
- magnetic_declination_radians: -0.382271 # Aproximdamente (20 Graus) # 0.0
- yaw_offset: 1.1170 #calculado automaticaente pelo script yaw_offset.py #0.0 #-1.91986 #(Para cabine a 220 graus do NORTE Mangético) # este valor não é fixo (tem que ser ajustado MANUALMENTE através da orientação inicial do norte verdadeiro) # No caso do imu estar dando 0 pro norte, ele precisa dar 0 apontando para o leste, para alinhar com coordenada UTM (+x) segundo o desenvolvedor TOM: https://robotics.stackexchange.com/questions/112056/gps-and-navsat-transform-node-issues-with-magnetic-declination-and-yaw-offset-in/112098?noredirect=1#comment48983_112098
- #Fórmula do YAW_OFSSET: yaw_offset = -(orientação_inicial_em_relação_ao_norte_VERDADEIRO - 90)
- zero_altitude: true
- broadcast_utm_transform: false #true
- publish_filtered_gps: true
- use_odometry_yaw: false #true
- #wait_for_datum: true
- #datum: [-23.66075725, -46.5925, 0.0] # pre-set datum if needed, [lat, lon, yaw]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement