Skip to content

Commit

Permalink
Remove ignition (#1301)
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
nkoenig and azeey authored Aug 4, 2023
1 parent 91876e7 commit af88891
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion python/test/pyModel_TEST.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_add_modify_frame(self):

def test_uri(self):
model = Model()
uri = "https:#fuel.ignitionrobotics.org/1.0/openrobotics/models/my-model"
uri = "https:#fuel.gazebosim.org/1.0/openrobotics/models/my-model"

model.set_uri(uri)
self.assertEqual(uri, model.uri())
Expand Down
2 changes: 1 addition & 1 deletion src/Model_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ TEST(DOMModel, Uri)
std::string name = "my-model";
gz::math::Pose3d pose(1, 2, 3, 0.1, 0.2, 0.3);
std::string uri =
"https://fuel.ignitionrobotics.org/1.0/openrobotics/models/my-model";
"https://fuel.gazebosim.org/1.0/openrobotics/models/my-model";

model.SetName(name);
model.SetRawPose(pose);
Expand Down
20 changes: 10 additions & 10 deletions test/integration/geometry_dom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ TEST(DOMGeometry, Shapes)
EXPECT_EQ(sdf::GeometryType::MESH, meshCol->Geom()->Type());
const sdf::Mesh *meshColGeom = meshCol->Geom()->MeshShape();
ASSERT_NE(nullptr, meshColGeom);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/mesh/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/mesh/"
"mesh.dae", meshColGeom->Uri());
EXPECT_TRUE(gz::math::Vector3d(0.1, 0.2, 0.3) ==
meshColGeom->Scale());
Expand All @@ -193,7 +193,7 @@ TEST(DOMGeometry, Shapes)
EXPECT_EQ(sdf::GeometryType::MESH, meshVis->Geom()->Type());
const sdf::Mesh *meshVisGeom = meshVis->Geom()->MeshShape();
ASSERT_NE(nullptr, meshVisGeom);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/mesh"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/mesh"
"/mesh.dae", meshVisGeom->Uri());
EXPECT_TRUE(gz::math::Vector3d(1.2, 2.3, 3.4) ==
meshVisGeom->Scale());
Expand All @@ -207,7 +207,7 @@ TEST(DOMGeometry, Shapes)
EXPECT_EQ(sdf::GeometryType::HEIGHTMAP, heightmapCol->Geom()->Type());
auto heightmapColGeom = heightmapCol->Geom()->HeightmapShape();
ASSERT_NE(nullptr, heightmapColGeom);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/heightmap.png", heightmapColGeom->Uri());
EXPECT_EQ(gz::math::Vector3d(500, 500, 100), heightmapColGeom->Size());
EXPECT_EQ(gz::math::Vector3d(1, 2, 3), heightmapColGeom->Position());
Expand All @@ -221,31 +221,31 @@ TEST(DOMGeometry, Shapes)
EXPECT_EQ(sdf::GeometryType::HEIGHTMAP, heightmapVis->Geom()->Type());
auto heightmapVisGeom = heightmapVis->Geom()->HeightmapShape();
ASSERT_NE(nullptr, heightmapVisGeom);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/heightmap.png", heightmapVisGeom->Uri());
EXPECT_EQ(gz::math::Vector3d(500, 500, 100), heightmapVisGeom->Size());
EXPECT_EQ(gz::math::Vector3d(1, 2, 3), heightmapVisGeom->Position());
EXPECT_EQ(3u, heightmapVisGeom->TextureCount());
EXPECT_EQ(2u, heightmapVisGeom->BlendCount());

auto texture0 = heightmapVisGeom->TextureByIndex(0u);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/diffuse0.png", texture0->Diffuse());
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/normal0.png", texture0->Normal());
EXPECT_DOUBLE_EQ(5.0, texture0->Size());

auto texture1 = heightmapVisGeom->TextureByIndex(1u);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/diffuse1.png", texture1->Diffuse());
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/normal1.png", texture1->Normal());
EXPECT_DOUBLE_EQ(10.0, texture1->Size());

auto texture2 = heightmapVisGeom->TextureByIndex(2u);
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/diffuse2.png", texture2->Diffuse());
EXPECT_EQ("https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/"
EXPECT_EQ("https://fuel.gazebosim.org/1.0/an_org/models/a_model/"
"materials/textures/normal2.png", texture2->Normal());
EXPECT_DOUBLE_EQ(20.0, texture2->Size());

Expand Down
8 changes: 4 additions & 4 deletions test/integration/resolve_uris.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
constexpr const int kNumCallbacks = 13;

constexpr const char* kMeshUri =
"https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/mesh/mesh.dae";
"https://fuel.gazebosim.org/1.0/an_org/models/a_model/mesh/mesh.dae";

constexpr const char* kHeightmapUri =
"https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/heightmap.png"; // NOLINT
"https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/heightmap.png"; // NOLINT

constexpr const char* kCubemapUri = "dummyUri";

constexpr const char* kMaterialScriptUri =
"file://media/materials/scripts/gazebo.material";

constexpr const char* kDiffuseUri =
"https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/diffuse0.png"; // NOLINT
"https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/diffuse0.png"; // NOLINT

constexpr const char* kNormalUri =
"https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/normal0.png"; // NOLINT
"https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/normal0.png"; // NOLINT

/////////////////////////////////////////////////
TEST(ResolveURIs, StoreResolvedDisabled)
Expand Down
20 changes: 10 additions & 10 deletions test/sdf/shapes.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<collision name="mesh_col">
<geometry>
<mesh>
<uri>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/mesh/mesh.dae</uri>
<uri>https://fuel.gazebosim.org/1.0/an_org/models/a_model/mesh/mesh.dae</uri>
<submesh>
<name>my_submesh</name>
<center>true</center>
Expand All @@ -134,7 +134,7 @@
<visual name="mesh_vis">
<geometry>
<mesh>
<uri>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/mesh/mesh.dae</uri>
<uri>https://fuel.gazebosim.org/1.0/an_org/models/a_model/mesh/mesh.dae</uri>
<submesh>
<name>another_submesh</name>
<center>false</center>
Expand All @@ -147,7 +147,7 @@
<collision name="heightmap_col">
<geometry>
<heightmap>
<uri>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/heightmap.png</uri>
<uri>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/heightmap.png</uri>
<size>500 500 100</size>
<pos>1 2 3</pos>
</heightmap>
Expand All @@ -157,30 +157,30 @@
<visual name="heightmap_vis">
<geometry>
<heightmap>
<uri>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/heightmap.png</uri>
<uri>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/heightmap.png</uri>
<size>500 500 100</size>
<pos>1 2 3</pos>
<texture>
<diffuse>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/diffuse0.png</diffuse>
<normal>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/normal0.png</normal>
<diffuse>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/diffuse0.png</diffuse>
<normal>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/normal0.png</normal>
<size>5</size>
</texture>
<blend>
<min_height>15</min_height>
<fade_dist>5</fade_dist>
</blend>
<texture>
<diffuse>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/diffuse1.png</diffuse>
<normal>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/normal1.png</normal>
<diffuse>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/diffuse1.png</diffuse>
<normal>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/normal1.png</normal>
<size>10</size>
</texture>
<blend>
<min_height>30</min_height>
<fade_dist>10</fade_dist>
</blend>
<texture>
<diffuse>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/diffuse2.png</diffuse>
<normal>https://fuel.ignitionrobotics.org/1.0/an_org/models/a_model/materials/textures/normal2.png</normal>
<diffuse>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/diffuse2.png</diffuse>
<normal>https://fuel.gazebosim.org/1.0/an_org/models/a_model/materials/textures/normal2.png</normal>
<size>20</size>
</texture>
</heightmap>
Expand Down
4 changes: 2 additions & 2 deletions test/sdf/shapes_world.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<collision name="collision">
<geometry>
<mesh>
<uri>https://ignitionfuel.org/an_org/models/a_model/mesh/mesh.dae</uri>
<uri>https://fuel.gazebosim.org/an_org/models/a_model/mesh/mesh.dae</uri>
<submesh>
<name>my_submesh</name>
<center>true</center>
Expand All @@ -136,7 +136,7 @@
<visual name="visual">
<geometry>
<mesh>
<uri>https://ignitionfuel.org/an_org/models/a_model/mesh/mesh.dae</uri>
<uri>https://fuel.gazebosim.org/an_org/models/a_model/mesh/mesh.dae</uri>
<submesh>
<name>another_submesh</name>
<center>false</center>
Expand Down

0 comments on commit af88891

Please sign in to comment.