Skip to content

Commit

Permalink
Fix bracket position
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
  • Loading branch information
Crola1702 committed Jan 31, 2023
1 parent 75daa0a commit b1346de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/optical_tactile_plugin/OpticalTactilePlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -807,9 +807,9 @@ void OpticalTactilePluginPrivate::ComputeNormalForces(
bufferIndex = j * (_msg.row_step() / 2) + i * (_msg.point_step() / 2);
std::memcpy(&normalForcesBuffer.get()[bufferIndex],
&normalForce.X(), sizeof(float));
std::memcpy(&normalForcesBuffer.get()[bufferIndex] + sizeof(float),
std::memcpy(&normalForcesBuffer.get()[bufferIndex + sizeof(float)],
&normalForce.Y(), sizeof(float));
std::memcpy(&normalForcesBuffer.get()[bufferIndex] + 2 * sizeof(float),
std::memcpy(&normalForcesBuffer.get()[bufferIndex + 2 * sizeof(float)],
&normalForce.Z(), sizeof(float));

if (!_visualizeForces)
Expand Down

0 comments on commit b1346de

Please sign in to comment.