Skip to content

Commit 5b5e49f

Browse files
committed
Fix linter errors, typos
Signed-off-by: Mihir Kulkarni <[email protected]>
1 parent 025d180 commit 5b5e49f

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

include/ignition/rendering/LidarVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace ignition
5353
/// \brief Update the Visual
5454
public: virtual void Update() = 0;
5555

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

include/ignition/rendering/base/BaseLidarVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ namespace ignition
209209
std::vector<double> BaseLidarVisual<T>::Points() const
210210
{
211211
std::vector<double> d;
212-
d.push_back(0.0);
212+
d.clear();
213213
return d;
214214
}
215215

ogre/src/OgreLidarVisual.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void OgreLidarVisual::Update()
134134
{
135135
if (!this->dataPtr->receivedMsg || this->dataPtr->laserMsg.size() == 0)
136136
{
137-
ignerr << "Message not received. Exiting Updat function"
137+
ignerr << "Message not received. Exiting update function"
138138
<< std::endl;
139139
return;
140140
}

test/integration/lidar_visual.cc

-2
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ void LidarVisualTest::RaysUnitBox(const std::string &_renderEngine)
339339
gpuRays2->Update();
340340
gpuRays2->Copy(scan2);
341341

342-
343342
pts.clear();
344343
for (int j = 0; j < vRayCount; j++)
345344
{
@@ -358,7 +357,6 @@ void LidarVisualTest::RaysUnitBox(const std::string &_renderEngine)
358357
}
359358
}
360359

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

0 commit comments

Comments
 (0)