Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignitionrobotics to gazebosim #250

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,34 @@ For a complete list of commands run `ign fuel -h` on the command line.
** List all models **
```
$ ign fuel list -t model -r | head
https://fuel.ignitionrobotics.org/anonymous/test_model_595389531
https://fuel.ignitionrobotics.org/anonymous/test_model_122023392
https://fuel.ignitionrobotics.org/anonymous/test_model_429486665
https://fuel.ignitionrobotics.org/anonymous/test_model_887243621
https://fuel.ignitionrobotics.org/anonymous/test_model_084900530
https://fuel.ignitionrobotics.org/anonymous/test_model_240061059
https://fuel.ignitionrobotics.org/anonymous/test_model_464734097
https://fuel.ignitionrobotics.org/anonymous/test_model_658598990
https://fuel.ignitionrobotics.org/anonymous/test_model_834617935
https://fuel.ignitionrobotics.org/anonymous/test_model_380348669
https://fuel.gazebosim.org/anonymous/test_model_595389531
https://fuel.gazebosim.org/anonymous/test_model_122023392
https://fuel.gazebosim.org/anonymous/test_model_429486665
https://fuel.gazebosim.org/anonymous/test_model_887243621
https://fuel.gazebosim.org/anonymous/test_model_084900530
https://fuel.gazebosim.org/anonymous/test_model_240061059
https://fuel.gazebosim.org/anonymous/test_model_464734097
https://fuel.gazebosim.org/anonymous/test_model_658598990
https://fuel.gazebosim.org/anonymous/test_model_834617935
https://fuel.gazebosim.org/anonymous/test_model_380348669
```

** Download a model **
```
$ ign fuel download -u https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Ambulance -v 4
$ ign fuel download -u https://fuel.gazebosim.org/1.0/OpenRobotics/models/Ambulance -v 4
Downloading model:
Name: Ambulance
Owner: OpenRobotics
Server:
URL: https://fuel.ignitionrobotics.org
URL: https://fuel.gazebosim.org
Version: 1.0

Download succeeded.
```

** C++ Get List models **
```
// Create a client (uses https://fuel.ignitionrobotics.org by default)
// Create a client (uses https://fuel.gazebosim.org by default)
ignition::fuel_tools::ClientConfig conf;
ignition::fuel_tools::FuelClient client(conf);
ignition::fuel_tools::ModelIter iter = client.Models();
Expand Down Expand Up @@ -107,7 +107,7 @@ See issues beginning with [Fuel backend] in the title. Here are two examples.
** TODO: Find a model on disk **
```
$ ign fuel locate --name am1
/home/developer/.ignition/fuel/fuel.ignitionrobotics.org/alice/am1
/home/developer/.ignition/fuel/fuel.gazebosim.org/alice/am1
```

## Dependencies
Expand Down
4 changes: 2 additions & 2 deletions api.md.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Ignition @IGN_DESIGNATION_CAP@
## Gazebo @IGN_DESIGNATION_CAP@

Ignition @IGN_DESIGNATION_CAP@ is a component in Ignition Robotics, a set of libraries
@IGN_DESIGNATION_CAP@ is a component in Gazebo, a set of libraries
designed to rapidly develop robot and simulation applications.

## License
Expand Down
10 changes: 5 additions & 5 deletions conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# The list of servers.
servers:
-
name: osrf
url: https://fuel.ignitionrobotics.org
name: gazebo
url: https://fuel.gazebosim.org

# -
# name: another_server
# url: https://myserver
-
name: ignition
url: https://fuel.ignition.org
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url: https://fuel.ignition.org
url: https://fuel.ignitionrobotics.org

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# Where are the assets stored in disk.
# cache:
Expand Down
13 changes: 7 additions & 6 deletions doc/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@
<meta name="keywords" content="$projectname">
<title>$projectname: $title</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="https://ignitionrobotics.org/assets/doxygen/dynsections.js"></script>
<script type="text/javascript" src="https://gazebosim.org/assets/doxygen/dynsections.js"></script>

<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.deep_orange-blue.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>

<link href="https://ignitionrobotics.org/assets/doxygen/doxygen.css" rel="stylesheet" type="text/css">
<link href="https://gazebosim.org/assets/doxygen/doxygen.css" rel="stylesheet" type="text/css">
</head>

<body>

<div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer">
<div class="mdl-layout__drawer mdl-color--grey-100 mdl-color-text--blue-grey-50">
<header class="mdl-color--grey-100">
<a href="index.html"><img width="60px" src="https://ignitionrobotics.org/assets/doxygen/ignition_logo.svg"/></a>
<a href="index.html"><img width="60px" src="https://gazebosim.org/assets/doxygen/gazebo_logo.svg"/></a>

<h1 class="project_title">$projectname</h1>
<h2>API Reference</h2>
<div class="version">
Expand All @@ -46,9 +47,9 @@ <h2>API Reference</h2>
<i class="mdl-color-text--grey-400 material-icons"
role="presentation">insert_drive_file</i>Files</a>
<a class="mdl-navigation__link" target="_blank"
href="http://ignitionrobotics.org">
href="http://gazebosim.org">
<i class="mdl-color-text--grey-400 material-icons"
role="presentation">launch</i>Ignition Website</a>
role="presentation">launch</i>Gazebo Website</a>
<a class="mdl-navigation__link" target="_blank"
href="https://github.com/ignitionrobotics/ign-fuel-tools/issues/new">
<i class="mdl-color-text--grey-400 material-icons"
Expand All @@ -58,4 +59,4 @@ <h2>API Reference</h2>
</div>

<main class="mdl-layout__content mdl-color--white">
<div id="top">
<div id="top">
8 changes: 4 additions & 4 deletions doc/ignition.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "Ignition Fuel Tools"
PROJECT_NAME = "Gazebo Fuel Tools"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down Expand Up @@ -768,7 +768,7 @@ WARN_FORMAT = "$file:$line: $text"
# messages should be written. If left blank the output is written to standard
# error (stderr).

WARN_LOGFILE = /tmp/ignition-fuel-tools.warn
WARN_LOGFILE = /tmp/gazebo-fuel-tools.warn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WARN_LOGFILE = /tmp/gazebo-fuel-tools.warn
WARN_LOGFILE = /tmp/gz-fuel-tools.warn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


#---------------------------------------------------------------------------
# Configuration options related to the input files
Expand Down Expand Up @@ -1229,7 +1229,7 @@ GENERATE_DOCSET = NO
# The default value is: Doxygen generated docs.
# This tag requires that the tag GENERATE_DOCSET is set to YES.

DOCSET_FEEDNAME = "Ignition FUEL TOOLS API Documentation"
DOCSET_FEEDNAME = "Gazebo FUEL TOOLS API Documentation"

# This tag specifies a string that should uniquely identify the documentation
# set bundle. This should be a reverse domain-name style string, e.g.
Expand Down Expand Up @@ -2432,4 +2432,4 @@ GENERATE_LEGEND = YES
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_CLEANUP = YES
DOT_CLEANUP = YES
6 changes: 3 additions & 3 deletions doc/tutorials-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta name="keywords" content="$projectname">
<title>$projectname: $title</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="https://ignitionrobotics.org/assets/doxygen/dynsections.js"></script>
<script type="text/javascript" src="https://gazebosim.org/assets/doxygen/dynsections.js"></script>

<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.deep_orange-blue.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>

<link href="https://ignitionrobotics.org/assets/doxygen/tutorials-doxygen.css" rel="stylesheet" type="text/css">
<link href="https://gazebosim.org/assets/doxygen/tutorials-doxygen.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
Expand All @@ -23,7 +23,7 @@
<div class="mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100">
<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--blue-grey-700 mdl-color-text--grey-100">
<div class="mdl-layout__header-row">
<a href="index.html"><img width="40px" src="https://ignitionrobotics.org/assets/doxygen/ignition_logo_white.svg"/></a>
<a href="index.html"><img width="40px" src="https://gazebosim.org/assets/doxygen/gazebo_logo_white.svg"/></a>
<span class="mdl-layout-title">$projectname Tutorials</span>
</div>
</header>
Expand Down
6 changes: 3 additions & 3 deletions doc/tutorials.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "Ignition Fuel Tools"
PROJECT_NAME = "Gazebo Fuel Tools"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down Expand Up @@ -768,7 +768,7 @@ WARN_FORMAT = "$file:$line: $text"
# messages should be written. If left blank the output is written to standard
# error (stderr).

WARN_LOGFILE = /tmp/ignition-fuel_tools-tutorials.warn
WARN_LOGFILE = /tmp/gz-fuel_tools-tutorials.warn

#---------------------------------------------------------------------------
# Configuration options related to the input files
Expand Down Expand Up @@ -1227,7 +1227,7 @@ GENERATE_DOCSET = NO
# The default value is: Doxygen generated docs.
# This tag requires that the tag GENERATE_DOCSET is set to YES.

DOCSET_FEEDNAME = "Ignition Fuel Tools API Documentation"
DOCSET_FEEDNAME = "Gazebo Fuel Tools API Documentation"

# This tag specifies a string that should uniquely identify the documentation
# set bundle. This should be a reverse domain-name style string, e.g.
Expand Down
10 changes: 5 additions & 5 deletions example/download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ int main(int argc, char **argv)
std::string usage("Download a resource.");
usage += " Usage:\n ./download <options>\n\n";
usage += " Examples:\n"
"\t ./download -t model -o OpenRobotics -n Beer\n"
"\t ./download -s https://fuel.ignitionrobotics.org -t world "
"-o OpenRobotics"
" -n Empty\n"
"\t ./download -c /tmp/my_config.yaml -t model -o caguero -n Beer\n";
"\t ./download -t model -o openrobotics -n beer\n"
"\t ./download -s https://fuel.gazebosim.org -t world "
"-o openrobotics"
" -n test_shapes\n"
"\t ./download -c /tmp/my_config.yaml -t model -o caguero -n beer\n";

gflags::SetUsageMessage(usage);

Expand Down
14 changes: 7 additions & 7 deletions include/ignition/fuel_tools/FuelClient.hh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ namespace ignition

/// \brief Remove a resource, such as a model or world, from Ignition Fuel
/// \param[in] _uri The full URI of the resource, e.g:
/// https://fuel.ignitionrobotics.org/1.0/openrobotcs/model/my_model
/// https://fuel.gazebosim.org/1.0/openrobotcs/model/my_model
/// \param[in] _headers Headers to set on the HTTP request.
/// \return Result of the delete operation
public: Result DeleteUrl(const ignition::common::URI &_uri,
Expand Down Expand Up @@ -238,7 +238,7 @@ namespace ignition
/// \brief Download a model from ignition fuel. This will override an
/// existing local copy of the model.
/// \param[in] _modelUrl The unique URL of the model to download.
/// E.g.: https://fuel.ignitionrobotics.org/1.0/caguero/models/Beer
/// E.g.: https://fuel.gazebosim.org/1.0/caguero/models/Beer
/// \param[out] _path Path where the model was downloaded.
/// \return Result of the download operation.
public: Result DownloadModel(const common::URI &_modelUrl,
Expand All @@ -247,7 +247,7 @@ namespace ignition
/// \brief Download a world from ignition fuel. This will override an
/// existing local copy of the world.
/// \param[in] _worldUrl The unique URL of the world to download.
/// E.g.: https://fuel.ignitionrobotics.org/1.0/OpenRobotics/worlds/Empty
/// E.g.: https://fuel.gazebosim.org/1.0/OpenRobotics/worlds/Empty
/// \param[out] _path Path where the world was downloaded.
/// \return Result of the download operation.
public: Result DownloadWorld(const common::URI &_worldUrl,
Expand Down Expand Up @@ -277,29 +277,29 @@ namespace ignition

/// \brief Check if a model is already present in the local cache.
/// \param[in] _modelUrl The unique URL of the model on a Fuel server.
/// E.g.: https://fuel.ignitionrobotics.org/1.0/caguero/models/Beer
/// E.g.: https://fuel.gazebosim.org/1.0/caguero/models/Beer
/// \param[out] _path Local path where the model can be found.
/// \return FETCH_ERROR if not cached, FETCH_ALREADY_EXISTS if cached.
public: Result CachedModel(const common::URI &_modelUrl,
std::string &_path);

/// \brief Check if a model exists in the cache.
/// \param[in] _modelUrl The unique URL of the world on a Fuel server.
/// E.g.: https://fuel.ignitionrobotics.org/1.0/caguero/models/Beer
/// E.g.: https://fuel.gazebosim.org/1.0/caguero/models/Beer
/// \return True if the model exists in the cache, false otherwise.
public: bool CachedModel(const common::URI &_modelUrl);

/// \brief Check if a world is already present in the local cache.
/// \param[in] _worldUrl The unique URL of the world on a Fuel server.
/// E.g.: https://fuel.ignitionrobotics.org/1.0/OpenRobotics/worlds/Empty
/// E.g.: https://fuel.gazebosim.org/1.0/OpenRobotics/worlds/Empty
/// \param[out] _path Local path where the world can be found.
/// \return FETCH_ERROR if not cached, FETCH_ALREADY_EXISTS if cached.
public: Result CachedWorld(const common::URI &_worldUrl,
std::string &_path);

/// \brief Check if a world exists in the cache.
/// \param[in] _worldUrl The unique URL of the world on a Fuel server.
/// E.g.: https://fuel.ignitionrobotics.org/1.0/OpenRobotics/worlds/Empty
/// E.g.: https://fuel.gazebosim.org/1.0/OpenRobotics/worlds/Empty
/// \return True if the world exists in the cache, false otherwise.
public: bool CachedWorld(const common::URI &_worldUrl);

Expand Down
2 changes: 1 addition & 1 deletion src/ClientConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ignition::fuel_tools::ServerConfigPrivate
}

/// \brief URL to reach server
public: common::URI url{"https://fuel.ignitionrobotics.org"};
public: common::URI url{"https://fuel.gazebosim.org"};

/// \brief A key to auth with the server
public: std::string key = "";
Expand Down
10 changes: 5 additions & 5 deletions src/ClientConfig_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ TEST(ClientConfig, CustomDefaultConfiguration)
{
ClientConfig config;
ASSERT_EQ(1u, config.Servers().size());
EXPECT_EQ("https://fuel.ignitionrobotics.org",
EXPECT_EQ("https://fuel.gazebosim.org",
config.Servers().front().Url().Str());

std::string defaultCacheLocation = ignition::common::joinPaths(
Expand Down Expand Up @@ -135,7 +135,7 @@ TEST(ClientConfig, CustomConfiguration)
EXPECT_TRUE(config.LoadConfig(testPath));

ASSERT_EQ(3u, config.Servers().size());
EXPECT_EQ("https://fuel.ignitionrobotics.org",
EXPECT_EQ("https://fuel.gazebosim.org",
config.Servers().front().Url().Str());
EXPECT_EQ("https://api.ignitionfuel.org",
config.Servers()[1].Url().Str());
Expand All @@ -162,10 +162,10 @@ TEST(ClientConfig, RepeatedServerConfiguration)
<< "# The list of servers." << std::endl
<< "servers:" << std::endl
<< " -" << std::endl
<< " url: https://fuel.ignitionrobotics.org" << std::endl
<< " url: https://fuel.gazebosim.org" << std::endl
<< "" << std::endl
<< " -" << std::endl
<< " url: https://fuel.ignitionrobotics.org" << std::endl
<< " url: https://fuel.gazebosim.org" << std::endl
<< "" << std::endl
<< "# Where are the assets stored in disk." << std::endl
<< "cache:" << std::endl
Expand Down Expand Up @@ -313,7 +313,7 @@ TEST(ClientConfig, AsString)
#else
EXPECT_NE(str.find(".ignition\\fuel"), std::string::npos);
#endif
EXPECT_NE(str.find("https://fuel.ignitionrobotics.org"), std::string::npos);
EXPECT_NE(str.find("https://fuel.gazebosim.org"), std::string::npos);
}

{
Expand Down
10 changes: 5 additions & 5 deletions src/CollectionIdentifier_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,18 @@ TEST(CollectionIdentifier, AsString)
std::string str =
"Name: \n"\
"Owner: \n"\
"Unique name: https://fuel.ignitionrobotics.org/collections/\n"
"Unique name: https://fuel.gazebosim.org/collections/\n"
"Server:\n"
" URL: https://fuel.ignitionrobotics.org\n"
" URL: https://fuel.gazebosim.org\n"
" Version: 1.0\n"
" API key: \n";
#else
std::string str =
"Name: \n"\
"Owner: \n"\
"Unique name: https://fuel.ignitionrobotics.org/collections\n"
"Unique name: https://fuel.gazebosim.org/collections\n"
"Server:\n"
" URL: https://fuel.ignitionrobotics.org\n"
" URL: https://fuel.gazebosim.org\n"
" Version: 1.0\n"
" API key: \n";
#endif
Expand All @@ -161,7 +161,7 @@ TEST(CollectionIdentifier, AsPrettyString)
CollectionIdentifier id;
std::string str =
"\x1B[96m\x1B[1mServer:\x1B[0m\n "
"\x1B[96m\x1B[1mURL: \x1B[0m\x1B[37mhttps://fuel.ignitionrobotics.org"
"\x1B[96m\x1B[1mURL: \x1B[0m\x1B[37mhttps://fuel.gazebosim.org"
"\x1B[0m\n \x1B[96m\x1B[1mVersion: \x1B[0m\x1B[37m1.0\x1B[0m\n";
EXPECT_EQ(str, id.AsPrettyString());
}
Expand Down
Loading