new branch

This commit is contained in:
2026-11-18 08:33:41 +07:00
parent b487770721
commit c5349843ad
354 changed files with 12298 additions and 11706 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
.gitmodules vendored Normal file → Executable file
View File

16
CATKIN_BUILD_README.md Normal file → Executable file
View File

@@ -56,6 +56,22 @@ Project này hỗ trợ **2 build systems**:
- Cần tạo workspace riêng (xem hướng dẫn trên)
- Packages tự động detect catkin mode khi build trong workspace
## Test
Các package có cờ test chung mặc định tắt test, kể cả khi catkin bật
`CATKIN_ENABLE_TESTING`. Trong workspace, bật các package hỗ trợ bằng:
```bash
catkin_make -DPNKX_NAV_CORE_BUILD_TESTS=ON
# Hoặc chỉ bật một package:
catkin_make -DBUILD_COSTMAP_TESTS=ON
```
CMake cache giữ giá trị các cờ; dùng build directory mới hoặc đặt lại cờ khi đổi
lựa chọn. `robot_cpp` và C API giữ cờ riêng `BUILD_TESTS` và `BUILD_C_API_TESTS`
(C API cũng nhận `BUILD_TESTS`), không theo cờ chung. Các test catkin còn yêu cầu
`CATKIN_ENABLE_TESTING=ON`; một số test cần GTest.
## Chi tiết
Xem `src/Navigations/Packages/move_base/BUILD_INSTRUCTIONS.md` để biết chi tiết về cách build package `move_base` với cả hai hệ thống.

12
CMAKE_BUILD_README.md Normal file → Executable file
View File

@@ -157,10 +157,18 @@ cmake -DCMAKE_CXX_COMPILER=g++-9 ..
# Chỉ định install prefix
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
# Build tests (nếu có)
cmake -DBUILD_TESTS=ON ..
# Các test được cấu hình qua cờ chung mặc định tắt; bật các package hỗ trợ:
cmake -DPNKX_NAV_CORE_BUILD_TESTS=ON ..
# Hoặc chỉ bật một package, ví dụ costmap:
cmake -DBUILD_COSTMAP_TESTS=ON ..
```
Các tùy chọn test được lưu trong CMake cache; dùng build directory mới hoặc đặt lại cờ
khi thay đổi lựa chọn. `robot_cpp` và C API giữ cờ riêng `BUILD_TESTS` và
`BUILD_C_API_TESTS` (C API cũng nhận `BUILD_TESTS`); cờ chung không bật chúng.
Một số test còn yêu cầu GTest hoặc catkin và `CATKIN_ENABLE_TESTING=ON`.
---
## Install

6
CMakeLists.txt Normal file → Executable file
View File

@@ -149,8 +149,8 @@ endif()
# Local planner đang chạy trên robot thật: cả bốn profile trong move_base_common_params.yaml đều
# trỏ `StanleyLocalPlanner`. Thiếu libstanley_local_planner.so là move_base2 chết ngay ở
# `initialize()` ("could not load the initial local planner").
if (NOT TARGET stanley_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/stanley_local_planner)
if (NOT TARGET hybrid_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/hybrid_local_planner)
endif()
if (NOT TARGET robot_actionlib_msgs)
@@ -189,7 +189,7 @@ endif()
# keep the current sibling Test directory buildable from this root CMake file.
option(PNKX_NAV_CORE_BUILD_TEST_PACKAGES
"Build navigation packages currently kept in AMR_T800/Test"
ON)
OFF)
option(PNKX_NAV_CORE_BUILD_CATKIN_TEST_PACKAGES
"Build Test packages that require a catkin workspace instead of standalone CMake"

0
README.md Normal file → Executable file
View File

0
config/runtime/action_handlers_params.yaml Normal file → Executable file
View File

0
config/runtime/compound_actions_params.yaml Normal file → Executable file
View File

0
config/runtime/config/costmap_params.yaml Normal file → Executable file
View File

0
config/runtime/config/inflation_layer_params.yaml Normal file → Executable file
View File

0
config/runtime/config/obstacle_layer_params.yaml Normal file → Executable file
View File

0
config/runtime/config/static_layer_params.yaml Normal file → Executable file
View File

0
config/runtime/config/voxel_layer_params.yaml Normal file → Executable file
View File

0
config/runtime/costmap_common_params.yaml Normal file → Executable file
View File

0
config/runtime/costmap_global_params.yaml Normal file → Executable file
View File

View File

0
config/runtime/costmap_local_params.yaml Normal file → Executable file
View File

View File

0
config/runtime/custom_global_params.yaml Normal file → Executable file
View File

0
config/runtime/dock_global_params.yaml Normal file → Executable file
View File

0
config/runtime/hybrid_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/maker_sources.yaml Normal file → Executable file
View File

0
config/runtime/mission_adapters_params.yaml Normal file → Executable file
View File

2
config/runtime/move_base_common_params.yaml Normal file → Executable file
View File

@@ -24,7 +24,7 @@ position:
global_planner: CustomPlanner # vật chất hoá tuyến NURBS từ edge của VDA5050 Order.
# MÙ VẬT CẢN theo thiết kế — nó là route materializer, không
# phải search planner. Chỉ có bản makePlan(Order, ...).
local_planner: HybridLocalPlanner
local_planner: PNKXLocalPlanner
docking:
# goal_frame đã được ControlLoop quy thành pose tuyệt đối. DockPlanner dùng đúng contract

0
config/runtime/mppi_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/mprim/base_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/mprim/dwa_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/mprim/ekf.yaml Normal file → Executable file
View File

0
config/runtime/mprim/genmprim_unicycle_highcost_5cm.m Normal file → Executable file
View File

0
config/runtime/mprim/genmprim_unicycle_highcost_5cm.py Normal file → Executable file
View File

0
config/runtime/mprim/localization.yaml Normal file → Executable file
View File

0
config/runtime/mprim/mapping.yaml Normal file → Executable file
View File

0
config/runtime/mprim/mpc_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/mprim/mqtt_general.yaml Normal file → Executable file
View File

0
config/runtime/mprim/ros_diff_drive_controller.yaml Normal file → Executable file
View File

0
config/runtime/mprim/sbpl_global_params.yaml Normal file → Executable file
View File

0
config/runtime/mprim/sick_line_guidance_mls.yaml Normal file → Executable file
View File

0
config/runtime/mprim/unicycle_5cm.mprim Normal file → Executable file
View File

View File

View File

0
config/runtime/mprim/unicycle_highcost_10cm.mprim Normal file → Executable file
View File

0
config/runtime/mprim/unicycle_highcost_1cm.mprim Normal file → Executable file
View File

0
config/runtime/mprim/unicycle_highcost_2_5cm.mprim Normal file → Executable file
View File

0
config/runtime/mprim/unicycle_highcost_2cm.mprim Normal file → Executable file
View File

0
config/runtime/mprim/unicycle_highcost_5cm.mprim Normal file → Executable file
View File

0
config/runtime/pnkx_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/priest_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/recovery_behaviors_params.yaml Normal file → Executable file
View File

2
config/runtime/sbpl_global_params.yaml Normal file → Executable file
View File

@@ -12,4 +12,4 @@ SBPLLatticePlanner:
free_start_heading: true
nominalvel_mpersecs: 0.3
timetoturn45degsinplace_secs: 1.31 # = 0.6 rad/s
primitive_filename: /home/duongtd/rl_ws/mir_robot/mir_navigation/mprim/unicycle_highcost_5cm.mprim
primitive_filename: /home/robotics/AGV/Diff_Wheel_Prj/t800_v2_ws/src/pnkx_nav_core/config/runtime/mprim/unicycle_highcost_5cm.mprim

0
config/runtime/stanley_local_planner_params.yaml Normal file → Executable file
View File

0
config/runtime/two_points_global_params.yaml Normal file → Executable file
View File

0
doc/architecture_discussion.md Normal file → Executable file
View File

0
doc/folders.md Normal file → Executable file
View File

0
doc/implementation_plan.md Normal file → Executable file
View File

0
doc/readme.md Normal file → Executable file
View File

0
examples/NavigationExample/NavigationAPI.cs Normal file → Executable file
View File

0
examples/NavigationExample/NavigationExample.csproj Normal file → Executable file
View File

0
examples/NavigationExample/Program.cs Normal file → Executable file
View File

0
examples/NavigationExample/TF3API.cs Normal file → Executable file
View File

0
examples/NavigationExample/maze.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
examples/NavigationExample/maze.yaml Normal file → Executable file
View File

0
examples/NavigationExample/msgs/CommonMsgs.cs Normal file → Executable file
View File

0
examples/NavigationExample/msgs/ProtocolMsgsTypes.cs Normal file → Executable file
View File

0
examples/NavigationExample/msgs/SensorMsgs.cs Normal file → Executable file
View File

0
examples/QUICK_START.md Normal file → Executable file
View File

0
examples/README.md Normal file → Executable file
View File

0
examples/START_HERE.md Normal file → Executable file
View File

0
pnkx_nav_core.sln Normal file → Executable file
View File

0
robotapp.db Normal file → Executable file
View File

0
src/APIs/c_api/CMakeLists.txt Normal file → Executable file
View File

0
src/APIs/c_api/C_API_AUDIT.md Normal file → Executable file
View File

0
src/APIs/c_api/NAV_C_API_2_GUIDE.md Normal file → Executable file
View File

0
src/APIs/c_api/include/convertor.h Normal file → Executable file
View File

0
src/APIs/c_api/include/convertor_2.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/Accel.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/AccelStamped.h Normal file → Executable file
View File

View File

View File

0
src/APIs/c_api/include/geometry_msgs/Inertia.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/InertiaStamped.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/Point.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/Point32.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/PointStamped.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/Polygon.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/PolygonStamped.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/Pose.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/Pose2D.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/PoseArray.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/PoseStamped.h Normal file → Executable file
View File

View File

View File

0
src/APIs/c_api/include/geometry_msgs/Quaternion.h Normal file → Executable file
View File

View File

0
src/APIs/c_api/include/geometry_msgs/Transform.h Normal file → Executable file
View File

View File

0
src/APIs/c_api/include/geometry_msgs/Twist.h Normal file → Executable file
View File

0
src/APIs/c_api/include/geometry_msgs/TwistStamped.h Normal file → Executable file
View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More