Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit d5b274fae5829ad43b12abbbb1f29f773fa6a6ce)

Co-authored-by: Alejandro Hernández Cordero <alejandro@openrobotics.org>
  • Loading branch information
mergify[bot] and ahcorde authored Nov 17, 2023
1 parent 33037d1 commit 432542f
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,14 @@ void ScrewDisplay<MessageType>::processMessagePrivate(
visual->setFramePosition(position);
visual->setFrameOrientation(orientation);
float alpha = alpha_property_->getFloat();
float linear_scale = linear_scale_property_->getFloat();
float angular_scale = angular_scale_property_->getFloat();
float width = width_property_->getFloat();
Ogre::ColourValue linear_color = linear_color_property_->getOgreColor();
Ogre::ColourValue angular_color = angular_color_property_->getOgreColor();
visual->setLinearColor(linear_color.r, linear_color.g, linear_color.b, alpha);
visual->setAngularColor(angular_color.r, angular_color.g, angular_color.b, alpha);
visual->setLinearScale(linear_scale);
visual->setAngularScale(angular_scale);
visual->setWidth(width);
visual->setScrew(
Ogre::Vector3(linear.x, linear.y, linear.z),
Ogre::Vector3(angular.x, angular.y, angular.z));
visual->setLinearScale(linear_scale_property_->getFloat());
visual->setAngularScale(angular_scale_property_->getFloat());
visual->setWidth(width_property_->getFloat());
visual->setHideSmallValues(hide_small_values_property_->getBool());

// And send it to the end of the circular buffer
visuals_.push_back(visual);
Expand Down

0 comments on commit 432542f

Please sign in to comment.