Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into grey/markers
Browse files Browse the repository at this point in the history
Conflicts:
	dart/dynamics/BodyNode.cpp
	dart/dynamics/BodyNode.h
	dart/dynamics/Skeleton.cpp
	dart/dynamics/Skeleton.h
  • Loading branch information
jslee02 committed Apr 24, 2016
2 parents bc7fe49 + cda180e commit a3d24ac
Show file tree
Hide file tree
Showing 506 changed files with 4,318 additions and 3,903 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ compiler:
- clang

env:
- BUILD_TYPE=Debug COVERALLS=ON
- BUILD_TYPE=Release COVERALLS=OFF
- BUILD_TYPE=Debug TREAT_WARNINGS_AS_ERRORS=ON COVERALLS=ON
- BUILD_TYPE=Release TREAT_WARNINGS_AS_ERRORS=ON COVERALLS=OFF

matrix:
exclude:
Expand All @@ -27,7 +27,7 @@ install:

script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDART_COVERALLS=$COVERALLS ..
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDART_TREAT_WARNINGS_AS_ERRORS=$TREAT_WARNINGS_AS_ERRORS -DDART_COVERALLS=$COVERALLS ..
- make -j4 all tutorials examples tests test
- if [ $COVERALLS = ON ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then make -j4 coveralls; fi

Expand Down
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ endif()
option(DART_BUILD_GUI_OSG "Build osgDart library" ON)
option(DART_COVERALLS "Turn on coveralls support" OFF)
option(DART_COVERALLS_UPLOAD "Upload the generated coveralls json" ON)
option(DART_TREAT_WARNINGS_AS_ERRORS "Treat warnings as errors" OFF)

if(DART_COVERALLS)
include(Coveralls)
Expand Down Expand Up @@ -141,13 +142,19 @@ if(MSVC)
if(MSVC_VERSION VERSION_LESS 1900)
message(FATAL_ERROR "${PROJECT_NAME} requires VS 2015 or greater.")
endif()
if(DART_TREAT_WARNINGS_AS_ERRORS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP4")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /INCREMENTAL:NO")
if(NOT DART_MSVC_DEFAULT_OPTIONS)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DART_RUNTIME_LIBRARY}d /Zi /Gy /W1 /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${DART_RUNTIME_LIBRARY} /Zi /GL /Gy /W1 /EHsc /arch:SSE2")
endif(NOT DART_MSVC_DEFAULT_OPTIONS)
elseif(CMAKE_COMPILER_IS_GNUCXX)
if(DART_TREAT_WARNINGS_AS_ERRORS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -msse2 -fPIC")
execute_process(
COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
Expand All @@ -162,6 +169,11 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_DEBUG} -pg")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if(DART_TREAT_WARNINGS_AS_ERRORS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=deprecated-declarations")
# Turn warning "deprecated-declarations" into an warning even if -Werror is
# specified until we abandon glut.
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -fPIC")
execute_process(
COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE CLANG_VERSION)
Expand Down Expand Up @@ -267,7 +279,7 @@ endfunction(dart_add_unittest)
#===============================================================================

add_subdirectory(dart)
add_subdirectory(apps EXCLUDE_FROM_ALL)
add_subdirectory(examples EXCLUDE_FROM_ALL)
add_subdirectory(tutorials EXCLUDE_FROM_ALL)

# Add a "tutorials" target to build tutorials.
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2011-2015, Georgia Tech Research Corporation
Copyright (c) 2011-2016, Georgia Tech Research Corporation
All rights reserved.

Georgia Tech Graphics Lab and Humanoid Robotics Lab
Expand Down Expand Up @@ -28,4 +28,4 @@ This file is provided under the following "BSD-style" License:
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
POSSIBILITY OF SUCH DAMAGE.
7 changes: 0 additions & 7 deletions apps/addDeleteSkels/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/atlasSimbicon/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/bipedStand/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions apps/hardcodedDesign/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/hybridDynamics/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/jointConstraints/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions apps/mixedChain/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/operationalSpaceControl/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/rigidChain/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/rigidCubes/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/rigidLoop/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions apps/rigidShapes/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions apps/simpleFrames/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions apps/softBodies/CMakeLists.txt

This file was deleted.

10 changes: 0 additions & 10 deletions apps/speedTest/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions apps/vehicle/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion cmake/FindASSIMP.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find ASSIMP
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindCCD.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find CCD
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindEIGEN3.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find Eigen
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindFCL.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find FCL
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindFLANN.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find FLANN
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindIPOPT.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find IPOPT
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindNLOPT.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find NLOPT
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindSHARK.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find SHARK
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindTINYXML.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find TINYXML
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindTINYXML2.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# Copyright (c) 2015-2016, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# This file is provided under the "BSD-style" License

# Find TINYXML2
Expand Down
4 changes: 2 additions & 2 deletions dart/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enable multi-threaded compilation.
# We do this here and not in the root folder since the example apps
# do not have enough source files to benefit from this.
# We do this here and not in the root folder since the examples and the
# tutorials do not have enough source files to benefit from this.
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()
Expand Down
2 changes: 1 addition & 1 deletion dart/collision/CollisionDetector.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2015, Georgia Tech Research Corporation
* Copyright (c) 2013-2016, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Jeongseok Lee <[email protected]>,
Expand Down
2 changes: 1 addition & 1 deletion dart/collision/CollisionDetector.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2015, Georgia Tech Research Corporation
* Copyright (c) 2013-2016, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Jeongseok Lee <[email protected]>,
Expand Down
2 changes: 1 addition & 1 deletion dart/collision/CollisionGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ bool CollisionGroup::hasShapeFrame(
}

//==============================================================================
size_t CollisionGroup::getNumShapeFrames() const
std::size_t CollisionGroup::getNumShapeFrames() const
{
return mShapeFrameMap.size();
}
Expand Down
2 changes: 1 addition & 1 deletion dart/collision/CollisionGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class CollisionGroup
bool hasShapeFrame(const dynamics::ShapeFrame* shapeFrame) const;

/// Return number of ShapeFrames added to this CollisionGroup
size_t getNumShapeFrames() const;
std::size_t getNumShapeFrames() const;

/// Perform collision detection within this CollisionGroup.
bool collide(const CollisionOption& option, CollisionResult& result);
Expand Down
2 changes: 1 addition & 1 deletion dart/collision/Option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace collision {
CollisionOption::CollisionOption(
bool enableContact,
bool binaryCheck,
size_t maxNumContacts,
std::size_t maxNumContacts,
const std::shared_ptr<CollisionFilter>& collisionFilter)
: enableContact(enableContact),
binaryCheck(binaryCheck),
Expand Down
4 changes: 2 additions & 2 deletions dart/collision/Option.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ struct CollisionOption
bool binaryCheck;

/// Maximum number of contacts to detect
size_t maxNumContacts;
std::size_t maxNumContacts;

/// CollisionFilter
std::shared_ptr<CollisionFilter> collisionFilter;

/// Constructor
CollisionOption(bool enableContact = true,
bool binaryCheck = false,
size_t maxNumContacts = 100,
std::size_t maxNumContacts = 100,
const std::shared_ptr<CollisionFilter>& collisionFilter = nullptr);
};

Expand Down
6 changes: 3 additions & 3 deletions dart/collision/Result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ void CollisionResult::addContact(const Contact& contact)
}

//==============================================================================
size_t CollisionResult::getNumContacts() const
std::size_t CollisionResult::getNumContacts() const
{
return mContacts.size();
}

//==============================================================================
Contact& CollisionResult::getContact(size_t index)
Contact& CollisionResult::getContact(std::size_t index)
{
assert(index < mContacts.size());

return mContacts[index];
}

//==============================================================================
const Contact& CollisionResult::getContact(size_t index) const
const Contact& CollisionResult::getContact(std::size_t index) const
{
assert(index < mContacts.size());

Expand Down
6 changes: 3 additions & 3 deletions dart/collision/Result.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ class CollisionResult
void addContact(const Contact& contact);

/// Return number of contacts
size_t getNumContacts() const;
std::size_t getNumContacts() const;

/// Return the index-th contact
Contact& getContact(size_t index);
Contact& getContact(std::size_t index);

/// Return (const) the index-th contact
const Contact& getContact(size_t index) const;
const Contact& getContact(std::size_t index) const;

/// Return contacts
const std::vector<Contact>& getContacts() const;
Expand Down
2 changes: 1 addition & 1 deletion dart/collision/bullet/BulletCollisionDetector.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2015, Georgia Tech Research Corporation
* Copyright (c) 2014-2016, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Jeongseok Lee <[email protected]>
Expand Down
Loading

0 comments on commit a3d24ac

Please sign in to comment.