Skip to content

Commit

Permalink
feat(trajectory_follower_node): add proxima python control
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Dec 5, 2023
1 parent d6e43f6 commit c775f62
Show file tree
Hide file tree
Showing 12 changed files with 2,638 additions and 2 deletions.
8 changes: 8 additions & 0 deletions control/trajectory_follower_node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ rclcpp_components_register_node(${SIMPLE_TRAJECTORY_FOLLOWER_NODE}
EXECUTABLE ${SIMPLE_TRAJECTORY_FOLLOWER_NODE}_exe
)

find_package(ament_cmake_python REQUIRED)
ament_python_install_package(${PROJECT_NAME})

install(PROGRAMS
scripts/pympc_trajectory_follower.py
DESTINATION lib/${PROJECT_NAME}
)

if(BUILD_TESTING)
set(TRAJECTORY_FOLLOWER_NODES_TEST test_trajectory_follower_node)
ament_add_ros_isolated_gtest(${TRAJECTORY_FOLLOWER_NODES_TEST}
Expand Down
5 changes: 5 additions & 0 deletions control/trajectory_follower_node/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@
<author email="[email protected]">Takayuki Murooka</author>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>
<buildtool_depend>autoware_cmake</buildtool_depend>

<depend>autoware_adapi_v1_msgs</depend>
<depend>autoware_auto_control_msgs</depend>
<depend>autoware_auto_planning_msgs</depend>
<depend>autoware_auto_system_msgs</depend>
<depend>autoware_auto_vehicle_msgs</depend>
<depend>casadi-pip</depend>
<depend>motion_utils</depend>
<depend>mpc_lateral_controller</depend>
<depend>pid_longitudinal_controller</depend>
<depend>pure_pursuit</depend>
<depend>python3-numba</depend>
<depend>python3-pytorch-pip</depend>
<depend>python3-scipy</depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<depend>trajectory_follower_base</depend>
Expand Down
25 changes: 25 additions & 0 deletions control/trajectory_follower_node/scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# python版MPC開発README

## 使用方法

- ビルドする

- シミュレーション全体の起動

autoware

```
ros2 launch autoware_launch planning_simulator.launch.xml record:=false sensor_model:=sample_sensor_kit vehicle_model:=sample_vehicle map_path:=$HOME/autoware_map/sample-map-planning
```

pilot-auto

```
ros2 launch autoware_launch planning_simulator.launch.xml record:=false vehicle_model:=lexus sensor_model:=aip_xx1 map_path:=$HOME/autoware_map/sample-map-planning
```

- debug echo

```
ros2 topic echo /debug_mpc_X_des tier4_debug_msgs/msg/Float32MultiArrayStamped
```
Loading

0 comments on commit c775f62

Please sign in to comment.