Commit afb6c6b
committed
fix(ros2): correct degree-to-radian conversion in transform publisher
The rotation conversion was incorrectly using M_PI_2 (pi/2) instead of
M_PI (pi) in the degree-to-radian formula, producing angles that were
half the correct value. Also negate the y-axis translation at the source
instead of after quaternion computation for consistency with ROS
coordinate conventions.
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>1 parent fee14f4 commit afb6c6b
1 file changed
Lines changed: 8 additions & 5 deletions
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments