This repository contains the pathplanning package and messages for the Smarty project.
To use this package, clone the repository into your workspace and build it with colcon.
cd $ROS2_SMARTY_WORKSPACE_DIR/src
git clone https://github.com/DHBW-Smart-Rollerz/pathplanning.git
cd ..
colcon build --symlink-install --packages-select pathplanning
After building the package, you can source the workspace and run the nodes.
source install/setup.bash
ros2 launch pathplanning pathplanning.launch.py
The launch file accepts the following arguments:
debug
: Enable debug mode (default: false)params_file
: Path to the ROS parameters file (default: ros_params.yaml in the config folder)
The package uses the following ROS parameters:
-
lane_points_subscriber: Topic to subscribe to for receiving lane detection results.
- Default:
'/lane_detection/result'
- Default:
-
image_subscriber: Topic to subscribe to for receiving bird's eye view images.
- Default:
'/camera/birds_eye'
- Default:
-
state_machine_subscriber: Topic to subscribe to for receiving state machine debug information.
- Default:
'/state_machine/debug'
- Default:
-
state_machine_lane_subscriber: Topic to subscribe to for receiving right lane information from the state machine.
- Default:
'/rightLane'
- Default:
-
remote_state_subscriber: Topic to subscribe to for receiving remote state information.
- Default:
'/remoteState'
- Default:
-
targetSteeringAngle_pub: Topic to publish the target steering angle.
- Default:
'/targetSteeringAngle'
- Default:
-
image_debug_publisher: Topic to publish debug images for path planning.
- Default:
'/pathplanning/debug_image'
- Default:
-
path_planning_right_publisher: Topic to publish the right lane coefficients for path planning.
- Default:
'/pathplanning/right_lane_coefficients'
- Default:
-
path_planning_left_publisher: Topic to publish the left lane coefficients for path planning.
- Default:
'/pathplanning/left_lane_coefficients'
- Default:
-
ref_point_publisher: Topic to publish the reference pose for the controller.
- Default:
'/controller/ref_pose'
- Default:
-
trj_look_forward: Number of points to look forward in the trajectory. This parameter should be adapted to speed and runtime.
- Default:
100
- Default:
-
active: Boolean flag to indicate whether the node is active.
- Default:
True
- Default:
This repository is licensed under the MIT license. See LICENSE for details.