Skip to content

Commit

Permalink
Merge pull request #2 from marip8/updates
Browse files Browse the repository at this point in the history
Renamed helper functions
  • Loading branch information
marip8 committed Aug 30, 2022
2 parents 5affe1b + e0aceef commit 9ae1e2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rviz_tool_path_display.cpp
Expand Up @@ -44,12 +44,12 @@

namespace
{
Ogre::Vector3 toMsg(geometry_msgs::Point const& point)
Ogre::Vector3 fromMsg(geometry_msgs::Point const& point)
{
return Ogre::Vector3(point.x, point.y, point.z);
}

Ogre::Quaternion toMsg(geometry_msgs::Quaternion const& quaternion)
Ogre::Quaternion fromMsg(geometry_msgs::Quaternion const& quaternion)
{
Ogre::Quaternion q;
rviz::normalizeQuaternion(quaternion, q);
Expand Down Expand Up @@ -195,8 +195,8 @@ void ToolPathDisplay::processMessage(const geometry_msgs::PoseArray::ConstPtr& m
poses_.resize(msg->poses.size());
for (std::size_t i = 0; i < msg->poses.size(); ++i)
{
poses_[i].position = toMsg(msg->poses[i].position);
poses_[i].orientation = toMsg(msg->poses[i].orientation);
poses_[i].position = fromMsg(msg->poses[i].position);
poses_[i].orientation = fromMsg(msg->poses[i].orientation);
}

updateDisplay();
Expand Down

0 comments on commit 9ae1e2a

Please sign in to comment.