ros2_controllers icon indicating copy to clipboard operation
ros2_controllers copied to clipboard

Small improvement in remapping

Open AndyZe opened this issue 3 years ago • 1 comments

Resizing this output vector with every iteration isn't necessary.

The idea here is, make the variable static so it retains its value between iterations. Only remap if the dimension of the vector changes.

Partial fix to #392

AndyZe avatar Jul 27 '22 13:07 AndyZe

well, this method is actually called in the update loop. I'll probably end up closing this PR if dof_ becomes constant because it won't be relevant anymore.

AndyZe avatar Jul 27 '22 16:07 AndyZe