File tree 4 files changed +3
-5
lines changed
include/ignition/rendering
4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ namespace ignition
53
53
// / \brief Update the Visual
54
54
public: virtual void Update () = 0;
55
55
56
- // / \brief Callback when the senspr data is recieved
56
+ // / \brief Callback when the sensor data is recieved
57
57
// / \param[in] _msg Vector of points representing distance of the ray
58
58
public: virtual void SetPoints (std::vector<double > &_msg) = 0;
59
59
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ namespace ignition
209
209
std::vector<double > BaseLidarVisual<T>::Points() const
210
210
{
211
211
std::vector<double > d;
212
- d.push_back ( 0.0 );
212
+ d.clear ( );
213
213
return d;
214
214
}
215
215
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ void OgreLidarVisual::Update()
134
134
{
135
135
if (!this ->dataPtr ->receivedMsg || this ->dataPtr ->laserMsg .size () == 0 )
136
136
{
137
- ignerr << " Message not received. Exiting Updat function"
137
+ ignerr << " Message not received. Exiting update function"
138
138
<< std::endl;
139
139
return ;
140
140
}
Original file line number Diff line number Diff line change @@ -339,7 +339,6 @@ void LidarVisualTest::RaysUnitBox(const std::string &_renderEngine)
339
339
gpuRays2->Update ();
340
340
gpuRays2->Copy (scan2);
341
341
342
-
343
342
pts.clear ();
344
343
for (int j = 0 ; j < vRayCount; j++)
345
344
{
@@ -358,7 +357,6 @@ void LidarVisualTest::RaysUnitBox(const std::string &_renderEngine)
358
357
}
359
358
}
360
359
361
-
362
360
for (unsigned int i = 0 ; i < lidarVis->HorizontalRayCount (); ++i)
363
361
EXPECT_DOUBLE_EQ (pts[i], ignition::math::INF_D);
364
362
You can’t perform that action at this time.
0 commit comments