Skip to content

Commit

Permalink
fixed typos, minor errors
Browse files Browse the repository at this point in the history
Signed-off-by: Mihir Kulkarni <[email protected]>
  • Loading branch information
mihirk284 committed Jun 29, 2020
1 parent 025d180 commit 9115a53
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/ignition/rendering/LidarVisual.hh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace ignition
/// \brief Update the Visual
public: virtual void Update() = 0;

/// \brief Callback when the senspr data is recieved
/// \brief Callback when the sensor data is recieved
/// \param[in] _msg Vector of points representing distance of the ray
public: virtual void SetPoints(std::vector<double> &_msg) = 0;

Expand Down
2 changes: 1 addition & 1 deletion include/ignition/rendering/base/BaseLidarVisual.hh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ namespace ignition
std::vector<double> BaseLidarVisual<T>::Points() const
{
std::vector<double> d;
d.push_back(0.0);
d.clear();
return d;
}

Expand Down
2 changes: 1 addition & 1 deletion ogre/src/OgreLidarVisual.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void OgreLidarVisual::Update()
{
if (!this->dataPtr->receivedMsg || this->dataPtr->laserMsg.size() == 0)
{
ignerr << "Message not received. Exiting Updat function"
ignerr << "Message not received. Exiting update function"
<< std::endl;
return;
}
Expand Down
2 changes: 0 additions & 2 deletions test/integration/lidar_visual.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ void LidarVisualTest::RaysUnitBox(const std::string &_renderEngine)
gpuRays2->Update();
gpuRays2->Copy(scan2);


pts.clear();
for (int j = 0; j < vRayCount; j++)
{
Expand All @@ -358,7 +357,6 @@ void LidarVisualTest::RaysUnitBox(const std::string &_renderEngine)
}
}


for (unsigned int i = 0; i < lidarVis->HorizontalRayCount(); ++i)
EXPECT_DOUBLE_EQ(pts[i], ignition::math::INF_D);

Expand Down

0 comments on commit 9115a53

Please sign in to comment.