Skip to content

Commit

Permalink
fix: modify type of global parameter (autowarefoundation#333)
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
  • Loading branch information
wep21 authored and 0x126 committed May 26, 2022
1 parent e714a7f commit 9621d65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_vehicle_info(self):
# https://github.com/ros2/launch_ros/blob/master/launch_ros/launch_ros/substitutions/parameter.py
gp = self.context.launch_configurations.get("ros_params", {})
if not gp:
gp = self.context.launch_configurations.get("global_params", {})
gp = dict(self.context.launch_configurations.get("global_params", {}))
p = {}
p["vehicle_length"] = gp["front_overhang"] + gp["wheel_base"] + gp["rear_overhang"]
p["vehicle_width"] = gp["wheel_tread"] + gp["left_overhang"] + gp["right_overhang"]
Expand Down

0 comments on commit 9621d65

Please sign in to comment.