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

add obstacle_velocity_planner #245

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,30 @@ def generate_launch_description():
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)

# obstacle velocity planner
# TODO(murooka) use launcher param
obstacle_velocity_planner_param_path = os.path.join(
get_package_share_directory("obstacle_velocity_planner"),
"config",
"obstacle_velocity_planner.param.yaml",
)
with open(obstacle_velocity_planner_param_path, "r") as f:
obstacle_velocity_planner_param = yaml.safe_load(f)["/**"]["ros__parameters"]
obstacle_velocity_planner_component = ComposableNode(
package="obstacle_velocity_planner",
plugin="ObstacleVelocityPlanner",
name="obstacle_velocity_planner",
namespace="",
remappings=[
("~/output/trajectory", "/planning/scenario_planning/lane_driving/trajectory"),
("~/input/trajectory", "surround_obstacle_checker/trajectory"),
],
parameters=[
obstacle_velocity_planner_param,
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)

# obstacle stop planner
obstacle_stop_planner_param_path = os.path.join(
get_package_share_directory("planning_launch"),
Expand Down Expand Up @@ -181,7 +205,8 @@ def generate_launch_description():
executable=LaunchConfiguration("container_executable"),
composable_node_descriptions=[
obstacle_avoidance_planner_component,
obstacle_stop_planner_component,
obstacle_velocity_planner_component,
# obstacle_stop_planner_component,
],
)

Expand Down