<launch>
- <arg name="use_sim_time" default="true"/>
+ <arg name="use_sim_time" default="false"/>
+ <arg name="odom" default="noisy_ground_truth"/>
+ <arg name="localization" default="static"/>
- <node name="rviz" pkg="rviz2" exec="rviz2" args="-d $(find-pkg-share twil_2dnav)/config/bag.rviz">
+ <node name="rviz" pkg="rviz2" exec="rviz2" args="-d $(find-pkg-share twil_2dnav)/config/bag_playback.rviz">
<param name="use_sim_time" value="$(var use_sim_time)"/>
</node>
+
+ <!-- tf twil_origin->sensors -->
+ <include file="$(find-pkg-share twil_description)/launch/twil.launch.xml">
+ <arg name="wam" value="false" />
+ <arg name="d435" value="true" />
+ </include>
+
+ <!-- tf odom->twil_origin -->
+ <include file="$(find-pkg-share twil_2dnav)/launch/odom_$(var odom).launch.xml">
+ <arg name="controller" value="twist_mrac_controller"/>
+ <arg name="use_sim_time" value="$(var use_sim_time)"/>
+ </include>
+
+ <!-- tf map->odom -->
+ <include file="$(find-pkg-share twil_2dnav)/launch/localization_$(var localization).launch.xml">
+ <arg name="use_sim_time" value="$(var use_sim_time)"/>
+ </include>
+
</launch>
<launch>
<arg name="use_sim_time" default="false"/>
- <node pkg="tf2_ros" exec="static_transform_publisher" name="odom_frame_publisher"
+ <node pkg="tf2_ros" exec="static_transform_publisher" name="map_odom_tf_publisher"
args="--frame-id map --child-frame-id odom"/>
</launch>
<node pkg="rtabmap_odom" exec="rgbd_odometry" name="rgbd_odometry" output="screen">
<param name="use_sim_time" value="$(var use_sim_time)"/>
- <param name="use_sim_time" value="$(var use_sim_time)"/>
<param name="frame_id" value="twil_origin"/>
<param name="odom_frame_id" value="odom"/>
<param name="scan_normal_k" value="10"/>
# Define the local variable with the desired topic names
camera_topics="/camera/depth/image_scan /camera/depth/camera_info /camera/depth/points /camera/depth/image_raw /camera/color/camera_info /camera/color/image_raw"
-robot_description_topics="/clock /tf /tf_static /robot_description /ground_truth"
+robot_description_topics="/joint_states /ground_truth"
sensor_topics="/odom /sensor/imu /fake_odom /twist_mrac_controller/odom"
qos_overrides_file="qos_overrides.yaml"