Commit Graph

43 Commits

Author SHA1 Message Date
a5be6f9a1f feat: body_clearance — mot nguon hinh hoc than duy nhat cho ca stack
Do tren sim thang 8-9/2026: bon thanh phan cung tra loi "than co cham khong",
moi cai tu dung hinh hoc rieng —
  local planner (PRIEST): 3 circle r=0.52 (+0.08 +0.05) -> nua rong 0.65 -> khe 1.30 m
  giam sat tuyen         : polygon costmap + 0.05        -> nua rong 0.53 -> khe 1.06 m
  global planner (SBPL)  : polygon vs LETHAL                              -> khe ~1.05 m
  head slowdown          : hop 0.583 x 0.48, nguong 253                   -> khac han
He qua khong tranh duoc: global planner ve duong qua khe 1.1 m, local planner
khong bam noi, residual treo 3.5-4.5, tang an toan dung robot, replan tra ve
CUNG mot duong, lap (do duoc 6 vong o mot goc tru, 250 vong o mot ca khac).
Chinh so o tung cho chi keo hai cot lai gan nhau roi lech o cho thu ba.

Them robot_costmap_2d/body_clearance: khong state, khong quyet dinh gi, chi do.
  BodyModel          footprint that (getRobotFootprint) + MOT padding + nguong LETHAL
  clearance()        [m] ho tu than da dem toi o vat can gan nhat; am = da lan vao
  sweep()            cung (v, omega) dan than toi dau — tra walk/t_contact/turn
  circleApproximation() suy ban kinh + spacing circle TU CHINH BodyModel do, cho
                     optimizer kha vi (ADMM/MPPI) can hinh tron
  obstaclePoints()   diem vat can cho solver — CUNG tap o ma sweep se do

Bat bien trung tam: thu solver nap vao dung bang thu tang an toan se do, va khe
hep nhat chuoi circle lot bang khe hep nhat sweep cho qua (co test khoa lai).

Ba bai hoc do duoc, deu la test:
- Chu vi kin thay vi vai diem roi: tru manh 1 o o goc truoc lot giua duong quet
  mui (ngang 0) va duong quet hong (ngang 0.53) — robot om ca tru moi dung.
- Buoc doc cung <= mot o: tuong mong 1 o lot giua hai mau la dam xuyen.
- Bo qua o DA nam trong than: neu khong, robot dung lan vanh an toan bi cam MOI
  chuyen dong ke ca chuyen dong thoat, va base chi tien thi ket vinh vien.
- t_contact + turn ben canh walk: cung 0.15 m khi di thang 0.36 m/s la "cham sau
  0.4 s"; cung 0.15 m khi bo 0.04 m/s voi omega 0.5 la "quay 107 do, cham sau
  3.7 s" — khong he sap cham.

27 test moi. Chi THEM file, khong sua costmap_2d.h/footprint.h (dung chung cho
moi layer).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011aaTZjPSPV9nfcrRzabEmA
2026-09-04 21:36:37 +07:00
a63c084002 Bring main up to the dev_cam_intel line
main had not moved since 11 July, while the depth-camera work continued on
dev_cam_intel for six weeks. The two branches did not diverge by accident: they
ended up holding two different clearing designs for the same layer.

main carried frustum clearing as VoxelLayer members - frustum_clearing_enabled_,
a pixel step and a min/max range - driven from costmap_2d_robot. dev_cam_intel
replaced that with a full-column clearing pass whose configuration lives per
observation, so the layer keeps no frustum state of its own.

This commit takes the dev_cam_intel tree whole. It is the line running on the
robot, the one rb_ws points at, and the one the NUC measurements were taken
against; the frustum design is superseded rather than merged, and stays in
history at 45c8227 if it is ever wanted back.

Squashed deliberately: the nineteen commits behind it are a working diary -
metrics that were added and removed, test toggles, an optimal-run series - and
none of that is worth carrying onto a branch other trees track.
2026-08-27 13:41:42 +07:00
faa57d9c93 change topic and msg depth camera 2026-07-11 09:50:40 +07:00
a2a021c114 add function computeCost file layer.h 2026-07-10 11:27:20 +07:00
9026c03e1e update 2026-01-13 14:30:13 +07:00
81e7874274 Duong update 2026-01-12 15:48:43 +07:00
b18aeb39ab replaced printf -> robot::console 2026-01-10 11:38:19 +07:00
384897b750 update from DuongTD 2026-01-08 10:35:27 +07:00
03c151afd2 update 2026-01-06 17:49:14 +07:00
a8fc8cb9a4 Merge branch 'main' of https://git.pnkr.asia/DuongTD/costmap_2d into main 2026-01-06 17:37:52 +07:00
800e5c1735 update obstacle_layer 2026-01-06 17:33:13 +07:00
b6733ae04c update 2025-12-31 15:43:07 +07:00
ae469e3271 add function getTypeLayer 2025-12-31 10:11:12 +07:00
6c682712fe hiep update 2025-12-30 10:42:34 +07:00
72b2f3c639 Hiep update 2025-12-30 10:24:18 +07:00
4246453ae6 hiep sua ten file 2025-12-30 09:56:35 +07:00
2c3d7d586d HiepLM update 2025-12-30 09:08:14 +07:00
71adf1390f hiep sua 2025-12-29 18:01:03 +07:00
ed54b7b8db Hiep sua file 2025-12-29 17:42:32 +07:00
0344c31e5b update 2025-12-25 11:06:15 +07:00
c53db2280e update load param using node handle 2025-12-11 17:16:46 +07:00
22cfd07519 fix file utils 2025-12-08 11:08:11 +07:00
d37daab594 fix file utils 2025-12-08 11:03:49 +07:00
ddff75465c Hiep update 2025-12-05 11:37:19 +07:00
af43332b28 replace std::shared_ptr to boost::shared_ptr 2025-12-04 14:32:22 +07:00
4fb2554291 update file costmap_2d_robot and file config params 2025-12-03 11:36:06 +07:00
11ff1baa79 fix core dumped err when loadplugin 2025-12-01 17:34:23 +07:00
5ad8e83761 remove file data_convert 2025-11-26 16:27:41 +07:00
2e0a4348dd update file costmap_2d_robot 2025-11-26 15:00:26 +07:00
59ec58a018 add file costmap_2d_robot 2025-11-18 11:44:01 +07:00
0c61984d3e update to tf3 2025-11-17 15:04:11 +07:00
42840e3bbc update file voxel_layer 2025-11-17 10:50:23 +07:00
49a72383c8 update file voxel_layer 2025-11-15 17:36:52 +07:00
bd98bf4e08 update folder plugins 2025-11-13 17:39:09 +07:00
c94de60a7b update file obstacle_layer and file test plugin 2025-11-12 17:38:38 +07:00
19683269c3 update function dataCallBack and file test static layer 2025-11-11 14:28:20 +07:00
498b606e15 them file test static_layer 2025-11-07 17:44:42 +07:00
cdb9ded893 1738_29102025 2025-10-29 17:38:43 +07:00
7c1dcfd352 1720_28102025 2025-10-28 17:21:02 +07:00
5d8981eab6 first commit 2025-10-28 14:44:05 +07:00
5d4d1943fe first commit 2025-10-28 13:43:40 +07:00
63dc18f3f0 1726_24102025 2025-10-24 17:26:44 +07:00
ad906963f7 first commit 2025-10-23 16:55:46 +07:00