Skip to content

AP1 Launch fails to launch. #3

@alyashour

Description

@alyashour

Logs show the following issues:

  • config file is hardcoded to /home/obaidmm/Repo/... instead of finding it dynamically.
  • launch file depends on pnc_sim. This should not be the case it can be launched separately.

Error for reference:

$ ros2 launch ap1_launch full_system.launch.py
[control_node-1] terminate called after throwing an instance of 'std::runtime_error'
[control_node-1]   what():  Failed to open config file: /home/obaidmm/Repo/ap1/src/planning_and_control/control/control_node_cfg.csv
[ERROR] [control_node-1]: process has died [pid 63182, exit code -6, cmd '/home/aly/Desktop/ap1/install/ap1_control/lib/ap1_control/control_node /home/obaidmm/Repo/ap1/src/planning_and_control/control/control_node_cfg.csv --ros-args -r __node:=ap1_control'].
[INFO] [planner_node-2]: process started with pid [63206]
[planner_node-2] [WARN] [1764878755.801634022] [ap1_planning]: No map file provided. Using mock curved road data. Set 'map_file_path' parameter to load a real Lanelet2 map.
[planner_node-2] [INFO] [1764878755.801709466] [ap1_planning]: Path Planner Node initialized.
[ERROR] [launch]: Caught exception in launch (see debug for traceback): "package 'ap1_pnc_sim' not found, searching: ['/home/aly/Desktop/ap1/install/mapping_localization_python', '/home/aly/Desktop/ap1/install/mapping_and_localization_cpp', '/home/aly/Desktop/ap1/install/ap1_planning', '/home/aly/Desktop/ap1/install/ap1_control_interface', '/home/aly/Desktop/ap1/install/ap1_control', '/home/aly/Desktop/ap1/install/ap1_msgs', '/home/aly/Desktop/ap1/install/ap1_launch', '/home/aly/Desktop/ap1_msgs/install/ap1_msgs', '/opt/ros/jazzy']"
[INFO] [planner_node-2]: sending signal 'SIGINT' to process[planner_node-2]
[planner_node-2] [INFO] [1764878757.714990941] [rclcpp]: signal_handler(signum=2)
[INFO] [planner_node-2]: process has finished cleanly [pid 63206]

Also is it possible to just have this in ap1 instead of under ap1_launch?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions