Skip to content

Commit 9da4ff1

Browse files
authored
fix: use correct site rotation for laser scans
the rotation matrix was accidentally transposed before multiplication.
1 parent 2cecaf8 commit 9da4ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mujoco_ros_laser/src/laser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void processRay(const mjModel *model, mjData *data, std::mt19937 rand_generator,
197197
{
198198
mjtNum pos[3], target[3];
199199
mju_copy(pos, laser_config.rays + 3 * ray_idx, 3);
200-
mju_mulMatTVec3(target, rot, pos);
200+
mju_mulMatVec3(target, rot, pos);
201201

202202
// start position
203203
mju_copy(pos, data->site_xpos + 3 * laser_config.site_attached, 3);

0 commit comments

Comments
 (0)