Skip to content

Commit

Permalink
Some documentation and placeholder for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
szepilot committed May 8, 2023
1 parent eb02909 commit 951bf4b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ add_executable(single_goal_pursuit src/single_goal_pursuit.cpp)
ament_target_dependencies(single_goal_pursuit ${ament_dependencies} )
add_executable(multiple_goal_pursuit src/multiple_goal_pursuit.cpp)
ament_target_dependencies(multiple_goal_pursuit ${ament_dependencies} )
add_executable(stanley_control src/stanley_control.cpp)
ament_target_dependencies(stanley_control ${ament_dependencies} )


if(BUILD_TESTING)
Expand All @@ -67,5 +69,6 @@ install(TARGETS
waypoint_to_target
single_goal_pursuit
multiple_goal_pursuit
stanley_control
DESTINATION lib/${PROJECT_NAME})
ament_package()
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
Waypoint and planner tools for `ROS 2` with mininal dependencies.

Planner / control nodes:
- `single_goal_pursuit`: Pure pursuit (for vehicles / robots)
- `single_goal_pursuit`: Pure pursuit (for vehicles / robots), a simlpe cross-track error method
- `multiple_goal_pursuit`: Multiple goal pursuit for vehicles / robots an implementation of our [paper](https://hjic.mk.uni-pannon.hu/index.php/hjic/article/view/914)
- `stanley_control`: Stanley controller, a heading error + cross-track error method

Waypoint nodes:
- `waypoint_saver`: saves the waypoints to a csv
- `waypoint_loader`: loads the waypoints from a csv to a ROS 2 topic
- `waypoint_to_target`: translates the global waypoint array to local target waypoint(s), thus it makes possible to use the contoller nodes in a standalone way


## Build
Expand Down Expand Up @@ -39,13 +41,13 @@ The "classic" pure pursuit implementation
Multiple goal pursuit for vehicles / robots, an implementation of our [paper](https://hjic.mk.uni-pannon.hu/index.php/hjic/article/view/914)

# `waypoint_to_target` node
Reads the waypoint array and speeds, from that it creates singel or mutliple goal points.
Reads the waypoint array and speeds, from that it creates single or mutliple goal points.

It also provides a `/metrics_wayp` array topic with the following elements:

| Array element | Meaning
| :--- | :---
|`[0]` | current lateral distance to the waypoint
|`[0]` | current lateral distance to the waypoint (cross-track error)
|`[1]` | average lateral distance over time
|`[2]` | current waypoint ID
|`[3]` | target waypoint ID
Expand Down
16 changes: 16 additions & 0 deletions src/stanley_control.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Stanley controller

#include <chrono>
#include <functional>
#include <memory>
#include <string>

#include "rclcpp/rclcpp.hpp"



int main(int argc, char **argv)
{

return 0;
}

0 comments on commit 951bf4b

Please sign in to comment.