Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Add relay for the clock and odometry messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-clem committed Nov 26, 2021
1 parent 33ea5e1 commit fb00e1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions autoware_launch/launch/svl.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
<include file="$(find-pkg-share lgsvl_interface)/launch/lgsvl.launch.py">
<arg name="lgsvl_interface_param" value="$(find-pkg-share lgsvl_interface)/param/lgsvl.$(var vehicle_model).param.yaml" />
</include>
<node pkg="topic_tools" exec="relay" name="relay_lgsvl_clock" output="log" if="$(var use_sim_time)">

This comment has been minimized.

Copy link
@wep21

wep21 Nov 29, 2021

Contributor

@maxime-clem Note: Topic name is also changable in simulator side.
image

This comment has been minimized.

Copy link
@maxime-clem

maxime-clem Nov 29, 2021

Author Contributor

I did that at first but Horibe-san suggested to keep the original topic name to stay compatible with the original sensor configuration.

<param name="input_topic" value="/lgsvl/clock" />
<param name="output_topic" value="/clock" />
<param name="type" value="rosgraph_msgs/msg/Clock" />
</node>
<node pkg="topic_tools" exec="relay" name="relay_lgsvl_odometry" output="log">
<param name="input_topic" value="/lgsvl/gnss_odom" />
<param name="output_topic" value="/localization/kinematic_state" />
<param name="type" value="nav_msgs/msg/Odometry" />
</node>
<!-- ground truth localization from LGSVL simulation -->
<node pkg="tf2_ros" exec="static_transform_publisher" args="0 0 0 0 0 0 base_link nav_base" />
<node pkg="tf2_ros" exec="static_transform_publisher" args="0 0 0 0 0 0 odom base_link" />
Expand Down

0 comments on commit fb00e1b

Please sign in to comment.