Skip to content

Commit

Permalink
fix: support context dict key for humble
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
  • Loading branch information
wep21 committed May 25, 2022
1 parent 2be4ea7 commit e358a50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aip_x1_launch/launch/velodyne_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

def get_vehicle_info(context):
gp = context.launch_configurations.get("ros_params", {})
if not gp:
gp = 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
2 changes: 2 additions & 0 deletions aip_x2_launch/launch/pandar_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def get_dual_return_filter_info(context):

def get_vehicle_info(context):
gp = context.launch_configurations.get("ros_params", {})
if not gp:
gp = 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
2 changes: 2 additions & 0 deletions common_sensor_launch/launch/livox_horizon.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

def get_vehicle_info(context):
gp = context.launch_configurations.get("ros_params", {})
if not gp:
gp = 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
2 changes: 2 additions & 0 deletions common_sensor_launch/launch/velodyne_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

def get_vehicle_info(context):
gp = context.launch_configurations.get("ros_params", {})
if not gp:
gp = 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 e358a50

Please sign in to comment.