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
- two_d_mode: true # Recommended to use 2d mode for nav2 in mostly planar environments
- publish_acceleration: false
- #print_diagnostics: true
- debug: false
- publish_tf: true
- # 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 # it seemst that for GPS this is how must be used : https://robotics.stackexchange.com/questions/101504/robot-localization-not-publishing-odom-base-link
- odom0: /odom
- odom0_config: [false, false, false, # Position X, Y, Z
- false, false, false, # Orientation roll, pitch, yaw (only yaw is used)
- true, 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: 100
- imu0: /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: 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: [1e-2, 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-2, 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-2, 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, 1.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, 1.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.1, 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, 1.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, 1.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, 1.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, 1.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, 1.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, 1.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, 1.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, 1.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, 1.0]
- ekf_filter_node_map:
- ros__parameters:
- use_sim_time: false
- sensor_timeout: 2.0 #0.5 # 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: 0.25 # Typical value: 0.1-0.5 seconds. Time to wait for a transform.
- frequency: 20.0
- two_d_mode: false #true # Recommended to use 2d mode for nav2 in mostly planar environments
- #print_diagnostics: true
- publish_acceleration: false
- debug: false
- publish_tf: true
- reset_on_time_jump: 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: /odom #/odometry/local # = "fused odometry + Imu in previous node"
- odom0_config: [true, true, false, # Position X, Y, Z
- false, false, false, # Orientation roll, pitch, yaw (only yaw is used)
- true, 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: 100
- odom0_nodelay: true
- odom0_differential: false # Typically false for odometry, as it's usually more accurate.
- odom0_relative: false
- imu0: /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, false, # Angular Velocity roll dot, pitch dot, yaw dot
- false, false, false] # Acceleration X double dot, Y double dot, Z double dot
- imu0_differential: true # Set to true for real robot IMU data due to typical inaccuracies.
- imu0_nodelay: 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
- use_control: false
- process_noise_covariance: [1.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, 1.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-3, 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.01, 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.01, 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.01, 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.1, 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.1, 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.1, 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.1, 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.1, 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.1, 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.1, 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.1, 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.1]
- navsat_transform:
- ros__parameters:
- use_sim_time: false
- frequency: 20.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.38201051083 #0.0 # This is needed just if IMU provides orientation with respect to magnetic north.
- yaw_offset: 1.5707963 # Adjust the angle of IMU to be = 0 when facing East
- zero_altitude: true
- broadcast_utm_transform: true
- publish_filtered_gps: true
- use_odometry_yaw: false #true
- wait_for_datum: true
- #datum : [38.161479, -122.454630, 0.0] #Sonoma
- datum: [-23.66075725, -46.5925, 0.0] # Mercedes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement