HiepLM update

This commit is contained in:
2025-12-30 09:06:48 +07:00
parent 3c51b228ec
commit 2987c1a481
8 changed files with 158 additions and 158 deletions

View File

@@ -43,7 +43,7 @@ Pose_out = Transform * Pose_in
### Đầu Vào
1. **`t_in`** (geometry_msgs::Pose): Pose trong frame nguồn
1. **`t_in`** (robot_geometry_msgs::Pose): Pose trong frame nguồn
```cpp
t_in.position.x, t_in.position.y, t_in.position.z // Vị trí
t_in.orientation.x, t_in.orientation.y, t_in.orientation.z, t_in.orientation.w // Hướng (quaternion)
@@ -57,7 +57,7 @@ Pose_out = Transform * Pose_in
### Đầu Ra
**`t_out`** (geometry_msgs::Pose): Pose trong frame đích
**`t_out`** (robot_geometry_msgs::Pose): Pose trong frame đích
```cpp
t_out.position.x, y, z // Vị trí đã được transform
t_out.orientation.x, y, z, w // Hướng đã được transform
@@ -207,7 +207,7 @@ v_out.translation = Vector3(-9.0, 18.0, 27.0) // Khớp với test expect
**Giải thích:** Sự khác biệt cho thấy có thể `lookupTransform` trả về transform ngược lại, hoặc transform được lưu trữ theo cách khác. Kết quả thực tế `(-9, 18, 27, 1, 0, 0, 0)` khớp với việc áp dụng transform từ B sang A (inverse của transform đã set).
#### Bước 6: Chuyển đổi kết quả về geometry_msgs::Pose (t_out)
#### Bước 6: Chuyển đổi kết quả về robot_geometry_msgs::Pose (t_out)
```cpp
toMsg(v_out, t_out);