Skip to content

Commit bf15100

Browse files
authored
More ign to gz changes (#795)
Signed-off-by: Ian Chen <[email protected]>
1 parent 6968855 commit bf15100

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

examples/boundingbox_camera/GlutWindow.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void handleMouse()
146146
g_rayQuery = rayCamera->Scene()->CreateRayQuery();
147147
if (!g_rayQuery)
148148
{
149-
ignerr << "Failed to create Ray Query" << std::endl;
149+
gzerr << "Failed to create Ray Query" << std::endl;
150150
return;
151151
}
152152
}
@@ -285,8 +285,8 @@ bool SaveImage(const uint8_t *_data)
285285
{
286286
if (!gz::common::createDirectories(savePath))
287287
{
288-
ignerr << "Could not create a directory [" << savePath
289-
<< "] for saving images.\n";
288+
gzerr << "Could not create a directory [" << savePath
289+
<< "] for saving images.\n";
290290
return false;
291291
}
292292
}
@@ -409,7 +409,7 @@ void run(std::vector<gz::rendering::CameraPtr> &_cameras)
409409
{
410410
if (_cameras.empty())
411411
{
412-
ignerr << "No cameras found. Scene will not be rendered" << std::endl;
412+
gzerr << "No cameras found. Scene will not be rendered" << std::endl;
413413
return;
414414
}
415415

examples/boundingbox_camera/Main.cc

+6-6
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ std::vector<CameraPtr> createCameras(const std::string &_engineName,
223223
RenderEngine *engine = rendering::engine(_engineName);
224224
if (!engine)
225225
{
226-
ignwarn << "Engine '" << _engineName
227-
<< "' is not supported" << std::endl;
226+
gzwarn << "Engine '" << _engineName
227+
<< "' is not supported" << std::endl;
228228
return std::vector<CameraPtr>();
229229
}
230230
ScenePtr scene = engine->CreateScene("scene");
@@ -263,10 +263,10 @@ int main(int _argc, char** _argv)
263263
}
264264
else if (type3d.compare(_argv[1]) != 0)
265265
{
266-
ignerr << "Invalid bounding box type given. Valid options are: "
267-
<< type3d << ", " << type2dVisible << ", or "
268-
<< type2dFull << "\n";
269-
ignerr << "you entered " << _argv[1] << "\n";
266+
gzerr << "Invalid bounding box type given. Valid options are: "
267+
<< type3d << ", " << type2dVisible << ", or "
268+
<< type2dFull << "\n";
269+
gzerr << "you entered " << _argv[1] << "\n";
270270
return -1;
271271
}
272272
}

ogre2/src/Ogre2RayQuery.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ void Ogre2RayQuery::SetFromCamera(const CameraPtr &_camera,
104104
}
105105
else
106106
{
107-
ignwarn << "Attempted to set non-finite origin from camera ["
108-
<< camera->Name() << "]" << std::endl;
107+
gzwarn << "Attempted to set non-finite origin from camera ["
108+
<< camera->Name() << "]" << std::endl;
109109
}
110110

111111
auto directionMath = Ogre2Conversions::Convert(ray.getDirection());
@@ -115,8 +115,8 @@ void Ogre2RayQuery::SetFromCamera(const CameraPtr &_camera,
115115
}
116116
else
117117
{
118-
ignwarn << "Attempted to set non-finite direction from camera ["
119-
<< camera->Name() << "]" << std::endl;
118+
gzwarn << "Attempted to set non-finite direction from camera ["
119+
<< camera->Name() << "]" << std::endl;
120120
}
121121

122122
this->dataPtr->imgPos.X() = static_cast<int>(

src/OrbitViewController.cc

+8-8
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ void OrbitViewController::Zoom(const double _value)
9494
{
9595
if (!std::isfinite(_value))
9696
{
97-
ignerr << "Failed to zoom by non-finite value [" << _value << "]"
98-
<< std::endl;
97+
gzerr << "Failed to zoom by non-finite value [" << _value << "]"
98+
<< std::endl;
9999
return;
100100
}
101101

@@ -122,8 +122,8 @@ void OrbitViewController::Pan(const math::Vector2d &_value)
122122
{
123123
if (!_value.IsFinite())
124124
{
125-
ignerr << "Failed to pan by non-finite value [" << _value << "]"
126-
<< std::endl;
125+
gzerr << "Failed to pan by non-finite value [" << _value << "]"
126+
<< std::endl;
127127
return;
128128
}
129129

@@ -135,8 +135,8 @@ void OrbitViewController::Pan(const math::Vector2d &_value)
135135

136136
if (!this->dataPtr->camera->WorldPosition().IsFinite())
137137
{
138-
ignerr << "Camera world position isn't finite ["
139-
<< this->dataPtr->camera->WorldPosition() << "]" << std::endl;
138+
gzerr << "Camera world position isn't finite ["
139+
<< this->dataPtr->camera->WorldPosition() << "]" << std::endl;
140140
return;
141141
}
142142

@@ -171,8 +171,8 @@ void OrbitViewController::Orbit(const math::Vector2d &_value)
171171
{
172172
if (!_value.IsFinite())
173173
{
174-
ignerr << "Failed to orbit by non-finite value [" << _value << "]"
175-
<< std::endl;
174+
gzerr << "Failed to orbit by non-finite value [" << _value << "]"
175+
<< std::endl;
176176
return;
177177
}
178178

test/common_test/Mesh_TEST.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
using namespace gz;
3333
using namespace rendering;
3434

35-
class MeshTest : public CommonRenderingTest
35+
class MeshTest : public CommonRenderingTest
3636
{
3737
public: const std::string TEST_MEDIA_PATH =
3838
common::joinPaths(std::string(PROJECT_SOURCE_PATH),
@@ -300,7 +300,7 @@ TEST_F(MeshTest, MeshClone)
300300
{
301301
// since the "top level mesh" has a material, the submesh materials are not
302302
// unique copies:
303-
// https://github.com/gazebosim/gz-rendering/blob/8f961d0c4cc755b6a2ca217d5a73de268ef95514/include/ignition/rendering/base/BaseMesh.hh#L293
303+
// https://github.com/gazebosim/gz-rendering/blob/696885518a6b3ef461b06af094b7f32a51e8ad83/include/gz/rendering/base/BaseMesh.hh#L305
304304
auto clonedSubMesh = clonedMesh->SubMeshByIndex(i);
305305
auto originalSubMesh = clonedMesh->SubMeshByIndex(i);
306306
compareMaterials(clonedSubMesh->Material(), originalSubMesh->Material(),

0 commit comments

Comments
 (0)