Skip to content

Commit

Permalink
Fix checking file existence in DartResourceRetriever (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 authored Sep 3, 2018
1 parent 392732c commit 4fdbfbb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## DART 6

### [DART 6.6.2 (2018-09-03)](https://github.com/dartsim/dart/milestone/47?closed=1)

* Utils

* Fixed checking file existence in DartResourceRetriever: [#1107](https://github.com/dartsim/dart/pull/1107)

### [DART 6.6.1 (2018-08-04)](https://github.com/dartsim/dart/milestone/46?closed=1)

* Utils
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ endif()
# If you change the version, please update the <version> tag in package.xml.
set(DART_MAJOR_VERSION "6")
set(DART_MINOR_VERSION "6")
set(DART_PATCH_VERSION "1")
set(DART_PATCH_VERSION "2")
set(DART_VERSION "${DART_MAJOR_VERSION}.${DART_MINOR_VERSION}.${DART_PATCH_VERSION}")
set(DART_PKG_DESC "Dynamic Animation and Robotics Toolkit.")
set(DART_PKG_EXTERNAL_DEPS "eigen, ccd, fcl, assimp, boost")
Expand Down
12 changes: 5 additions & 7 deletions dart/utils/DartResourceRetriever.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,13 @@ std::string DartResourceRetriever::getFilePath(const common::Uri& uri)

// path is empty if the file specified by fileUri doesn't exist.
if (!path.empty())
{
dtwarn << "Failed to retrieve a resource from '" << uri.toString()
<< "'. Please make sure you set the environment variable for "
<< "DART data path. For example:\n"
<< " $ export DART_DATA_PATH=/usr/local/share/doc/dart/data/\n";

return path;
}
}

dtwarn << "Failed to retrieve a resource from '" << uri.toString()
<< "'. Please make sure you set the environment variable for "
<< "DART data path. For example:\n"
<< " $ export DART_DATA_PATH=/usr/local/share/doc/dart/data/\n";
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
a Catkin workspace. Catkin is not required to build DART. For more
information, see: http://ros.org/reps/rep-0136.html -->
<name>dartsim</name>
<version>6.6.1</version>
<version>6.6.2</version>
<description>
DART (Dynamic Animation and Robotics Toolkit) is a collaborative,
cross-platform, open source library created by the Georgia Tech Graphics
Expand Down

0 comments on commit 4fdbfbb

Please sign in to comment.