Skip to content

Commit

Permalink
[TMP] run behavior_path_planner with gdb
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem committed Jul 24, 2023
1 parent 8e6c02e commit 08823a4
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from launch.substitutions import LaunchConfiguration
from launch.substitutions import PythonExpression
from launch_ros.actions import ComposableNodeContainer
from launch_ros.actions import Node
from launch_ros.descriptions import ComposableNode
from launch_ros.substitutions import FindPackageShare
import yaml
Expand Down Expand Up @@ -64,9 +65,10 @@ def launch_setup(context, *args, **kwargs):
with open(LaunchConfiguration("behavior_path_planner_param_path").perform(context), "r") as f:
behavior_path_planner_param = yaml.safe_load(f)["/**"]["ros__parameters"]

behavior_path_planner_component = ComposableNode(
behavior_path_planner_component = Node(
package="behavior_path_planner",
plugin="behavior_path_planner::BehaviorPathPlannerNode",
# plugin="behavior_path_planner::BehaviorPathPlannerNode",
executable="behavior_path_planner",
name="behavior_path_planner",
namespace="",
remappings=[
Expand Down Expand Up @@ -116,7 +118,8 @@ def launch_setup(context, *args, **kwargs):
),
},
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
prefix="konsole -e gdb -ex run --args",
# extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)

# smoother param
Expand Down Expand Up @@ -212,7 +215,6 @@ def launch_setup(context, *args, **kwargs):
package="rclcpp_components",
executable=LaunchConfiguration("container_executable"),
composable_node_descriptions=[
behavior_path_planner_component,
behavior_velocity_planner_component,
],
output="screen",
Expand Down Expand Up @@ -261,6 +263,7 @@ def launch_setup(context, *args, **kwargs):
group = GroupAction(
[
container,
behavior_path_planner_component,
load_compare_map,
load_vector_map_inside_area_filter,
]
Expand Down

0 comments on commit 08823a4

Please sign in to comment.