Skip to content

Commit

Permalink
Fixed screw display (#1093)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Nov 17, 2023
1 parent 51e576c commit d5b274f
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,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 d5b274f

Please sign in to comment.