@@ -59,7 +59,7 @@ def generate_launch_description():
5959 name = 'ekf_filter_node_map' ,
6060 output = 'screen' ,
6161 parameters = [rl_config , {'use_sim_time' : LaunchConfiguration ('use_sim_time' )}],
62- remappings = [('/odometry/filtered' , '/odometry/global ' )]
62+ remappings = [('/odometry/filtered' , '/odometry/gps ' )] # TODO make this '/odom_global/filtered' and change in GPS
6363 )
6464
6565 # NAVSAT TRANSFORM NODE
@@ -69,19 +69,27 @@ def generate_launch_description():
6969 executable = 'navsat_transform_node' ,
7070 name = 'navsat_transform' ,
7171 output = 'screen' ,
72- parameters = [navsat_config , {'use_sim_time' : LaunchConfiguration ('use_sim_time' )}],
72+ parameters = [navsat_config ,
73+ {'use_sim_time' : LaunchConfiguration ('use_sim_time' ),
74+ 'yaw_offset' : LaunchConfiguration ('yaw_offset' )
75+ }],
7376 remappings = [
7477 ('imu' , '/phoenix/imu' ), # Data from VectorNav
7578 ('gps/fix' , '/phoenix/navsat' ), # Data from VectorNav
7679 ('odometry/filtered' , '/odom' ), # Input from LOCAL EKF
77- ('odometry/gps' , '/odometry/gps' ) # Output to GLOBAL EKF
80+ ('odometry/gps' , '/odometry/gps' ), # Output to GLOBAL EKF
81+ ('gps/filtered' , 'gps/filtered' ), # Extra gps/filtered sensor_msgs/NavSatFix
7882 ]
7983 )
8084 return LaunchDescription ([
8185 # Launch Arguments
8286 DeclareLaunchArgument ('use_sim_time' ,
8387 default_value = 'true' ,
8488 description = 'Use simulation clock if true' ),
89+ DeclareLaunchArgument ('yaw_offset' ,
90+ default_value = '-0.105' , # flaot for dearborn, needto change for purdue
91+ description = 'magnetic_declination_radians paramter' ),
92+
8593 # Nodes
8694 local_ekf ,
8795 global_ekf ,
0 commit comments