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

Merge master branch into #531 #591

Merged
merged 114 commits into from
Jan 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
4de3375
deleting more copy constructors that should not exist
mxgrey Oct 25, 2015
4dd49d4
Merge branch 'grey/fix_copy_safety_5_1' into grey/fix_copy_safety
mxgrey Oct 25, 2015
bc49d40
Update .travis.yml
jslee02 Oct 25, 2015
667ff1c
Revert last accidental commit (bc49d40c1306f5097bd58cf5256ddaa8201ab3f0)
jslee02 Oct 25, 2015
8e1034c
Use trusty (beta) for travis-ci build tests
jslee02 Oct 25, 2015
1ba52e5
Merge pull request #539 from dartsim/grey/fix_copy_safety_5_1
jslee02 Oct 25, 2015
701929e
Merge pull request #538 from dartsim/grey/fix_copy_safety
jslee02 Oct 25, 2015
ebc0ad8
Update version number and changelogs
jslee02 Oct 25, 2015
b4b4393
Add option to build with MSVC default options (flags)
jslee02 Oct 28, 2015
0d2425e
Enable parallel build for MSVC
jslee02 Oct 28, 2015
2076362
Update CMakeLists.txt
jslee02 Oct 28, 2015
4e8abc8
Fix const correctness of BodyNode::getMomentOfInertia()
jslee02 Oct 29, 2015
643f818
Add check for missing symbols in assimp
jslee02 Nov 2, 2015
af3d1cd
Merge pull request #541 from dartsim/const_correctness
jslee02 Nov 2, 2015
0af147f
Remove requirement of Assimp < 3.0~dfsg-4
jslee02 Nov 3, 2015
9adad43
Relax error tolerance in signal test
jslee02 Nov 3, 2015
bdb6cdb
new bounding box semantics
Nov 3, 2015
71bcedc
forgot mesh scale
Nov 3, 2015
55e1266
mesh bounding box must change with scale
Nov 3, 2015
3f4a9db
Suppress deprecated-warning in Function.cpp
jslee02 Nov 4, 2015
c629edd
Add deprecated-warning suppress macros for reusability
jslee02 Nov 4, 2015
827a449
Update style and comment
jslee02 Nov 4, 2015
7969f2d
Update boost paths
jslee02 Nov 5, 2015
49b8d7b
Use consistent path style
jslee02 Nov 5, 2015
8d003b1
Merge pull request #550 from dartsim/function_warning_suppress
jslee02 Nov 5, 2015
7ee9bc3
Merge pull request #542 from dartsim/assimp_missing_symbols
jslee02 Nov 5, 2015
5c5c5af
removed unused variable
mxgrey Nov 5, 2015
2f49a25
Merge pull request #543 from dartsim/appveyor_msvc_default_options
jslee02 Nov 6, 2015
0ab5d77
Update changelogs for 5.1.1
jslee02 Nov 6, 2015
b961d29
Update control file for Debian packaging
jslee02 Nov 6, 2015
a8edf3f
Merge pull request #551 from dartsim/packaging-5.1.1
jslee02 Nov 6, 2015
d22bba7
Merge pull request #552 from dartsim/release-5.1
jslee02 Nov 6, 2015
a5eda7e
use std::fmod instead of our own implementation
mxgrey Nov 10, 2015
1048a06
improved comments
mxgrey Nov 10, 2015
b66b679
use .empty() since it may perform better
mxgrey Nov 10, 2015
e65a82a
added clarifying comment
mxgrey Nov 10, 2015
1e34ac5
Merge branch 'master' into grey/analytical
mxgrey Nov 10, 2015
1a750fd
improved wording of the cmake warning messages for ASSIMP
mxgrey Nov 10, 2015
71f6aa2
Merge pull request #530 from dartsim/grey/analytical
jslee02 Nov 11, 2015
71b0456
fixing missing definitions
mxgrey Nov 11, 2015
105a073
allow BodyNodes and DOFs to be uncoupled in Groups
mxgrey Nov 16, 2015
fa37f1c
updated the API of Group and changed some of its behavior
mxgrey Nov 16, 2015
934448c
updated the constructors for Group
mxgrey Nov 16, 2015
1a5356d
changed function names to match DART style
mxgrey Nov 16, 2015
4dfe4b5
removed unnecessary functions
mxgrey Nov 16, 2015
f1808c8
removed Camera and Light classes, because they were unused
mxgrey Nov 16, 2015
e5aed46
decoupled Joints from BodyNodes for the Group class
mxgrey Nov 18, 2015
cba5ffb
updating API for Group construction
mxgrey Nov 18, 2015
bc57bc2
created unit tests for new Group features
mxgrey Nov 18, 2015
4ceafe1
removed OpenGLCamera
mxgrey Nov 19, 2015
e14110c
Merge pull request #558 from dartsim/grey/definitions
jslee02 Nov 20, 2015
0dee940
Merge pull request #557 from dartsim/grey/ReferentialSkeleton
jslee02 Nov 20, 2015
2d16567
Fix packaging of dart-core/dart libraries
jslee02 Nov 20, 2015
ed746f6
Merge pull request #559 from dartsim/dart_core_package
jslee02 Nov 21, 2015
2e1709e
Merge remote-tracking branch 'origin/release-5.1'
jslee02 Nov 21, 2015
0aa4021
Rename Parser.[h/cpp] to XmlHelpers.[h/cpp]
jslee02 Nov 26, 2015
0409827
Add attribute getters and revise ElementEnumerator
jslee02 Nov 26, 2015
984e1c2
Style fixes
jslee02 Nov 26, 2015
482d17c
More style fixes and const correctness fixes
jslee02 Nov 26, 2015
9d24b2f
Reinstate VSK parser adapting it to the current API -- not finished yet
jslee02 Nov 26, 2015
5dc38cf
Update APIs of shape classes
jslee02 Nov 27, 2015
37cd00a
Add color property to Marker
jslee02 Nov 28, 2015
ff27c7b
Add Skeleton::getNumMarkers()
jslee02 Nov 28, 2015
172d8d0
Draw markers when SimWindow::mShowMarkers is true
jslee02 Nov 28, 2015
ffc5e7b
Add options to VSK parser
jslee02 Nov 28, 2015
958c181
Add back Eigen aligned new operator to Marker class
jslee02 Nov 29, 2015
d8ee39c
Add servo motor constraint
jslee02 Nov 29, 2015
c653835
Fix incorrect applying constraints on a joint with different constraints
jslee02 Nov 29, 2015
074b654
Minor improvement on generating joint constraints in ConstraintSolver
jslee02 Nov 29, 2015
b962ceb
Merge branch 'master' of https://github.com/dartsim/dart into feature…
Nov 30, 2015
86d8d46
added DEPRECATED flag
Nov 30, 2015
76485a3
Merge pull request #547 from mklingen/feature/bounding_box
jslee02 Dec 3, 2015
de25015
Merge remote-tracking branch 'origin/master' into vsk_parser
jslee02 Dec 3, 2015
95d019c
clarified comment
mxgrey Dec 4, 2015
4efda83
Merge pull request #553 from dartsim/grey/improve_cmake_warnings
jslee02 Dec 5, 2015
97f0cd1
Change VskParser from a class to a namespace
jslee02 Dec 5, 2015
16c325d
Make a note that Marker should be refactored into a Node class
jslee02 Dec 5, 2015
dca2755
Merge pull request #561 from dartsim/vsk_parser
jslee02 Dec 5, 2015
9946d62
Fix #554
jslee02 Dec 5, 2015
e0fdd9f
Add regression test for #554
jslee02 Dec 5, 2015
d72a371
Revise regression test
jslee02 Dec 5, 2015
976fbdf
Merge remote-tracking branch 'origin/master' into travis_ci_trusty
jslee02 Dec 8, 2015
b333113
Merge pull request #570 from dartsim/travis_ci_trusty
jslee02 Dec 10, 2015
e9661e9
Merge remote-tracking branch 'origin/master' into fix_554
jslee02 Dec 10, 2015
3d88a47
Merge remote-tracking branch 'origin/master' into servo_motor
jslee02 Dec 10, 2015
77cb772
Merge pull request #564 from dartsim/fix_554
jslee02 Dec 13, 2015
cbbc975
add more hint to Pendulum.cpp, revise the typo error in collision.md
jiayeli-hualien Dec 19, 2015
c4295f0
Fix control file for missing urdfdom-dev dep
costashatz Dec 19, 2015
220ea22
Updated changelog
costashatz Dec 19, 2015
d2427a3
Updated changelogs
costashatz Dec 19, 2015
ed208fc
Merge pull request #574 from costashatz/urdfdom-dep
jslee02 Dec 19, 2015
de4b14b
Merge pull request #573 from JiaYeLi/master
jslee02 Dec 24, 2015
e6ae75b
created unittest to trigger issue #576
mxgrey Dec 29, 2015
51f23e0
fixed concurrency issue which will hopefully address issue #576
mxgrey Dec 29, 2015
99491af
added tests to ensure that the world frame is not gaining any children
mxgrey Dec 29, 2015
b0f4ee7
Allow CMake to generate for VS 2015.
donnyward Jan 2, 2016
8d23ecd
Include <iostream> to define std::cout.
donnyward Jan 2, 2016
7318372
Forward declare structs as structs, not classes.
donnyward Jan 2, 2016
bec9a8d
Resolve Visual Studio error C4800.
donnyward Jan 2, 2016
6b71d13
Merge pull request #577 from dartsim/grey/fix_world_concurrency
jslee02 Jan 3, 2016
e8e0e63
Merge pull request #566 from dartsim/servo_motor
karenliu Jan 7, 2016
c68f92b
Merge branch 'master' into vs2015_fixes
donnyward Jan 8, 2016
fb06b0b
Merge pull request #580 from donnyward/vs2015_fixes
jslee02 Jan 8, 2016
2305827
Updating the constraint namespace to C++11. Note: API changes
mxgrey Jan 12, 2016
ec269b5
Fixed segmentation fault for null meshes
mxgrey Jan 12, 2016
d042759
Merge pull request #584 from dartsim/grey/fix_constraint_leaks
jslee02 Jan 13, 2016
0c91dca
Merge pull request #585 from dartsim/grey/fix_updateBoundingBoxDim
jslee02 Jan 13, 2016
34a2c1b
Implement missing implementations in ConstrainedGroup
jslee02 Jan 15, 2016
43585ea
Remove a private method ConstrainedGroup::checkAndAddConstraint since…
jslee02 Jan 15, 2016
8c994dc
Hide definition of ConstrainedGroup::containConstraint() when it's no…
jslee02 Jan 15, 2016
c3bfb60
Merge pull request #586 from dartsim/constraint_missing_implementation
jslee02 Jan 16, 2016
4ec1be8
Merge branch 'master' into grey/addons_merging_master
jslee02 Jan 21, 2016
2194f99
Make Visual Studio 2015 the minimum requirement
jslee02 Jan 22, 2016
b10b4a3
Use constexpr without checking compiler as Visual Studio 2015 became …
jslee02 Jan 22, 2016
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
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ language: cpp
os:
- linux
- osx
sudo: required
dist: trusty
compiler:
- gcc
- clang
Expand All @@ -27,3 +29,4 @@ script:
after_failure:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then '../ci/after_failure_linux.sh' ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then '../ci/after_failure_osx.sh' ; fi

74 changes: 65 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#===============================================================================
# CMake settings
#===============================================================================
cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
if(MSVC)
cmake_minimum_required(VERSION 3.1.3)
else()
cmake_minimum_required(VERSION 2.8.6)
endif()

# Use MACOSX_RPATH by default on OS X. This was added in CMake 2.8.12 and
# became default in CMake 3.0. Explicitly setting this policy is necessary to
Expand Down Expand Up @@ -41,7 +45,7 @@ project(dart)

set(DART_MAJOR_VERSION "5")
set(DART_MINOR_VERSION "1")
set(DART_PATCH_VERSION "0")
set(DART_PATCH_VERSION "1")
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 "flann, ccd, fcl")
Expand All @@ -62,6 +66,7 @@ option(BUILD_CORE_ONLY "Build only the core of DART" OFF)
if(MSVC)
set(DART_RUNTIME_LIBRARY "/MD" CACHE STRING "BaseName chosen by the user at CMake configure time")
set_property(CACHE DART_RUNTIME_LIBRARY PROPERTY STRINGS /MD /MT)
option(DART_MSVC_DEFAULT_OPTIONS "Build DART with default Visual Studio options" OFF)
else()
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
endif()
Expand Down Expand Up @@ -150,6 +155,55 @@ endif()
find_package(ASSIMP 3.0.0 QUIET)
if(ASSIMP_FOUND)
message(STATUS "Looking for ASSIMP - ${ASSIMP_VERSION} found")

# Check for missing symbols in ASSIMP (see #451)
include(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_INCLUDES ${ASSIMP_INCLUDE_DIRS})
set(CMAKE_REQUIRED_LIBRARIES ${ASSIMP_LIBRARIES})

check_cxx_source_compiles(
"
#include <assimp/scene.h>
int main()
{
aiScene* scene = new aiScene;
delete scene;
return 1;
}
"
ASSIMP_AISCENE_CTOR_DTOR_DEFINED)

if(NOT ASSIMP_AISCENE_CTOR_DTOR_DEFINED)
message(WARNING "The installed version of ASSIMP (${ASSIMP_VERSION}) is "
"missing symbols for the constructor and/or destructor of "
"aiScene. DART will use its own implementations of these "
"functions. We recommend using a version of ASSIMP that "
"does not have this issue, once one becomes available.")
endif(NOT ASSIMP_AISCENE_CTOR_DTOR_DEFINED)

check_cxx_source_compiles(
"
#include <assimp/material.h>
int main()
{
aiMaterial* material = new aiMaterial;
delete material;
return 1;
}
"
ASSIMP_AIMATERIAL_CTOR_DTOR_DEFINED)

if(NOT ASSIMP_AIMATERIAL_CTOR_DTOR_DEFINED)
message(WARNING "The installed version of ASSIMP (${ASSIMP_VERSION}) is "
"missing symbols for the constructor and/or destructor of "
"aiMaterial. DART will use its own implementations of "
"these functions. We recommend using a version of ASSIMP "
"that does not have this issue, once one becomes available.")
endif(NOT ASSIMP_AIMATERIAL_CTOR_DTOR_DEFINED)

unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)

else()
if(ASSIMP_VERSION)
message(SEND_ERROR "Looking for ASSIMP - ${ASSIMP_VERSION} found, ${PROJECT_NAME} requires 3.0.0 or greater.")
Expand All @@ -168,7 +222,7 @@ endif()

# Boost
set(DART_MIN_BOOST_VERSION 1.46.0 CACHE INTERNAL "Boost min version requirement" FORCE)
if(MSVC OR MSVC90 OR MSVC10)
if(MSVC)
add_definitions(-DBOOST_ALL_NO_LIB)
endif()
add_definitions(-DBOOST_TEST_DYN_LINK)
Expand Down Expand Up @@ -410,7 +464,7 @@ endif()
#===============================================================================
execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/case_sensitive_filesystem
RESULT_VARIABLE FILESYSTEM_CASE_SENSITIVE_RETURN)
if (${FILESYSTEM_CASE_SENSITIVE_RETURN} EQUAL 0)
if(${FILESYSTEM_CASE_SENSITIVE_RETURN} EQUAL 0)
set(FILESYSTEM_CASE_SENSITIVE TRUE)
else()
set(FILESYSTEM_CASE_SENSITIVE FALSE)
Expand All @@ -420,14 +474,16 @@ endif()
# Compiler flags
#===============================================================================
if(MSVC)
message(STATUS "Setup Visual Studio Specific Flags")
# Visual Studio enables c++11 support by default
if(NOT MSVC12)
message(FATAL_ERROR "${PROJECT_NAME} requires VS 2013 or greater.")
if(NOT MSVC14)
message(FATAL_ERROR "${PROJECT_NAME} requires VS 2015 or greater.")
endif()
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")
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)
set(CMAKE_CXX_FLAGS "-Wall -msse2 -fPIC")
execute_process(
Expand Down
37 changes: 35 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
### Version 6.0.0 (2015-12-19)

1. Added missing `liburdfdom-dev` dependency in Ubuntu package
* [Pull request #574](https://github.com/dartsim/dart/pull/574)

### Version 5.1.1 (2015-11-06)

1. Add bullet dependency to package.xml
* [Pull request #523](https://github.com/dartsim/dart/pull/523)

1. Improved handling of missing symbols of Assimp package
* [Pull request #542](https://github.com/dartsim/dart/pull/542)

1. Improved travis-ci build log for Mac
* [Pull request #529](https://github.com/dartsim/dart/pull/529)

1. Fixed warnings in Function.cpp
* [Pull request #550](https://github.com/dartsim/dart/pull/550)

1. Fixed build failures on AppVeyor
* [Pull request #543](https://github.com/dartsim/dart/pull/543)

1. Fixed const qualification of ResourceRetriever
* [Pull request #534](https://github.com/dartsim/dart/pull/534)
* [Issue #532](https://github.com/dartsim/dart/issues/532)

1. Fixed aligned memory allocation with Eigen objects
* [Pull request #527](https://github.com/dartsim/dart/pull/527)

1. Fixed copy safety for various classes
* [Pull request #526](https://github.com/dartsim/dart/pull/526)
* [Pull request #539](https://github.com/dartsim/dart/pull/539)
* [Issue #524](https://github.com/dartsim/dart/issues/524)

### Version 5.1.0 (2015-10-15)

1. Fixed incorrect rotational motion of BallJoint and FreeJoint
Expand Down Expand Up @@ -292,7 +326,7 @@
* [Pull request #277](https://github.com/dartsim/dart/pull/277)
1. Added all-inclusive header and namespace headers
* [Pull request #278](https://github.com/dartsim/dart/pull/278)
1. Added DegreeOfFreedom class for getting/setting data of individual generalized coordinates
1. Added DegreeOfFreedom class for getting/setting data of individual generalized coordinates
* [Pull request #288](https://github.com/dartsim/dart/pull/288)
1. Added hybrid dynamics
* [Pull request #298](https://github.com/dartsim/dart/pull/298)
Expand Down Expand Up @@ -445,4 +479,3 @@
1. Clean-up of the Robot class
1. Removed Object class
1. More robust build and installation process on Linux

6 changes: 3 additions & 3 deletions apps/atlasSimbicon/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void Controller::harnessPelvis()
return;

BodyNode* bd = mAtlasRobot->getBodyNode("pelvis");
mWeldJointConstraintPelvis = new WeldJointConstraint(bd);
mWeldJointConstraintPelvis = std::make_shared<WeldJointConstraint>(bd);
mConstratinSolver->addConstraint(mWeldJointConstraintPelvis);
mPelvisHarnessOn = true;

Expand All @@ -257,7 +257,7 @@ void Controller::harnessLeftFoot()
return;

BodyNode* bd = mAtlasRobot->getBodyNode("l_foot");
mWeldJointConstraintLeftFoot = new WeldJointConstraint(bd);
mWeldJointConstraintLeftFoot = std::make_shared<WeldJointConstraint>(bd);
mLeftFootHarnessOn = true;

dtmsg << "Left foot is harnessed." << std::endl;
Expand All @@ -282,7 +282,7 @@ void Controller::harnessRightFoot()
return;

BodyNode* bd = mAtlasRobot->getBodyNode("r_foot");
mWeldJointConstraintRightFoot = new WeldJointConstraint(bd);
mWeldJointConstraintRightFoot = std::make_shared<WeldJointConstraint>(bd);
mRightFootHarnessOn = true;

dtmsg << "Right foot is harnessed." << std::endl;
Expand Down
6 changes: 3 additions & 3 deletions apps/atlasSimbicon/Controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ class Controller
dart::dynamics::BodyNode* _getRightFoot() const;

/// \brief Weld joint constraint for pelvis harnessing
dart::constraint::WeldJointConstraint* mWeldJointConstraintPelvis;
dart::constraint::WeldJointConstraintPtr mWeldJointConstraintPelvis;

/// \brief Weld joint constraint for left foot harnessing
dart::constraint::WeldJointConstraint* mWeldJointConstraintLeftFoot;
dart::constraint::WeldJointConstraintPtr mWeldJointConstraintLeftFoot;

/// \brief Weld joint constraint for right foot harnessing
dart::constraint::WeldJointConstraint* mWeldJointConstraintRightFoot;
dart::constraint::WeldJointConstraintPtr mWeldJointConstraintRightFoot;

/// \brief Initial state of the robot
Eigen::VectorXd mInitialState;
Expand Down
2 changes: 1 addition & 1 deletion apps/jointConstraints/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void MyWindow::keyboard(unsigned char key, int x, int y)
if (mHarnessOn)
{
BodyNode* bd = mWorld->getSkeleton(1)->getBodyNode("h_pelvis");
mWeldJoint = new WeldJointConstraint(bd);
mWeldJoint = std::make_shared<WeldJointConstraint>(bd);
mWorld->getConstraintSolver()->addConstraint(mWeldJoint);
}
else
Expand Down
2 changes: 1 addition & 1 deletion apps/jointConstraints/MyWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MyWindow : public dart::gui::SimWindow
private:
Eigen::Vector3d mForce;
Controller* mController;
dart::constraint::WeldJointConstraint* mWeldJoint;
dart::constraint::WeldJointConstraintPtr mWeldJoint;
int mImpulseDuration;
bool mHarnessOn;

Expand Down
3 changes: 2 additions & 1 deletion apps/rigidLoop/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ int main(int argc, char* argv[])
bd2->getVisualizationShape(0)->setColor(Eigen::Vector3d(1.0, 0.0, 0.0));
Eigen::Vector3d offset(0.0, 0.025, 0.0);
Eigen::Vector3d jointPos = bd1->getTransform() * offset;
BallJointConstraint *cl = new BallJointConstraint( bd1, bd2, jointPos);
BallJointConstraintPtr cl =
std::make_shared<BallJointConstraint>( bd1, bd2, jointPos);
//WeldJointConstraint *cl = new WeldJointConstraint(bd1, bd2);
myWorld->getConstraintSolver()->addConstraint(cl);

Expand Down
7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ platform:

# specify custom environment variables
environment:
MSVC_DEFAULT_OPTIONS: ON
BOOST_ROOT: C:\Libraries\boost
BOOST_LIBRARYDIR: C:\Libraries\boost\stage\lib
BOOST_LIBRARYDIR: C:\Libraries\boost\lib32-msvc-12.0
BUILD_EXAMPLES: OFF # don't build examples to not exceed allowed build time (40 min)
BUILD_TUTORIALS: OFF # don't build tutorials to not exceed allowed build time (40 min)
matrix:
Expand Down Expand Up @@ -43,7 +44,7 @@ branches:

# scripts that run after cloning repository
install:
- ps: cd "C:\projects\dart\ci"
- ps: cd C:\projects\dart\ci
- ps: .\appveyor_install.ps1

# scripts to run before build
Expand All @@ -54,7 +55,7 @@ before_build:
# We generate project files for Visual Studio 12 because the boost binaries installed on the test server are for Visual Studio 12.
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=Visual Studio 12
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=Visual Studio 12 Win64
- cmd: cmake -G "%CMAKE_GENERATOR_NAME%" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_CORE_ONLY="%BUILD_CORE_ONLY%" -DDART_BUILD_EXAMPLES="%BUILD_EXAMPLES%" -DDART_BUILD_TUTORIALS="%BUILD_TUTORIALS%" -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DBoost_USE_STATIC_LIBS="ON" -Durdfdom_DIR="%urdfdom_DIR%" -Durdfdom_headers_DIR="%urdfdom_headers_DIR%" ..
- cmd: cmake -G "%CMAKE_GENERATOR_NAME%" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_CORE_ONLY="%BUILD_CORE_ONLY%" -DDART_BUILD_EXAMPLES="%BUILD_EXAMPLES%" -DDART_BUILD_TUTORIALS="%BUILD_TUTORIALS%" -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DBoost_USE_STATIC_LIBS="ON" -Durdfdom_DIR="%urdfdom_DIR%" -Durdfdom_headers_DIR="%urdfdom_headers_DIR%" -DDART_MSVC_DEFAULT_OPTIONS="%MSVC_DEFAULT_OPTIONS%" ..

build:
project: C:\projects\dart\build\dart.sln # path to Visual Studio solution or project
Expand Down
50 changes: 8 additions & 42 deletions ci/before_install_linux.sh
Original file line number Diff line number Diff line change
@@ -1,61 +1,29 @@
before_install() {
cd /tmp

# Install nlopt from source since Ubuntu 12.04 does not provide debian package for nlopt
curl -o nlopt-2.4.1.tar.gz http://ab-initio.mit.edu/nlopt/nlopt-2.4.1.tar.gz
tar -xf nlopt-2.4.1.tar.gz
cd nlopt-2.4.1/
sh autogen.sh &>/dev/null # mute the output
make CPPFLAGS='-fPIC' && sudo make install &>/dev/null # mute the output
}

# Install gcc-4.8 and g++-4.8 for C++11
sudo apt-get -qq --yes install python-software-properties
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
sudo apt-get -qq update
sudo apt-get -qq --yes install gcc-4.8 g++-4.8
sudo apt-get -qq --yes autoremove
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50

# Install eigen-3.2.1 (for unsupported/Eigen/Splines)
wget --quiet -O libeigen3-dev_3.2.1-1~precise1_all.deb http://packages.yade-dem.org/precise/libeigen3-dev_3.2.1-1~precise1_all.deb
sudo dpkg -i libeigen3-dev_3.2.1-1~precise1_all.deb

# Install boost 1.55 compatible with C++11
wget --quiet -O boost_1_55_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download
tar -xzf boost_1_55_0.tar.gz
cd boost_1_55_0/
sudo apt-get -qq update
sudo apt-get -qq install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
./bootstrap.sh --prefix=/usr/local &>/dev/null # mute the output
n=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`
sudo ./b2 --with=all -j $n install &>/dev/null # mute the output
sudo sh -c 'echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf'
sudo ldconfig

sudo add-apt-repository --yes ppa:libccd-debs/ppa
sudo add-apt-repository --yes ppa:fcl-debs/ppa
sudo add-apt-repository --yes ppa:dartsim/ppa
sudo apt-add-repository --yes ppa:libccd-debs/ppa
sudo apt-add-repository --yes ppa:fcl-debs/ppa
sudo apt-add-repository --yes ppa:dartsim/ppa
sudo apt-get -qq update

APT_CORE='
cmake
libassimp-dev
libboost-all-dev
libccd-dev
libeigen3-dev
libfcl-dev
'

APT=$APT_CORE'
APT=$APT_CORE'
freeglut3-dev
libxi-dev
libxmu-dev
libflann-dev
libnlopt-dev
coinor-libipopt-dev
libtinyxml-dev
libtinyxml2-dev
liburdfdom-dev
liburdfdom-headers-dev
libopenscenegraph-dev
'

if [ $BUILD_CORE_ONLY = OFF ]; then
Expand All @@ -64,5 +32,3 @@ else
sudo apt-get -qq --yes --force-yes install $APT_CORE
fi

(before_install)

4 changes: 2 additions & 2 deletions dart/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ set(dart_core_hdrs
${dart_optimizer_hdrs}
${dart_collision_hdrs}
${dart_constraint_hdrs}
${dart_renderer_hdrs}
${dart_simulation_hdrs}
)
set(dart_core_srcs
Expand All @@ -47,20 +48,19 @@ set(dart_core_srcs
${dart_optimizer_srcs}
${dart_collision_srcs}
${dart_constraint_srcs}
${dart_renderer_srcs}
${dart_simulation_srcs}
)
if(NOT BUILD_CORE_ONLY)
set(dart_hdrs
dart.h
${dart_gui_hdrs}
${dart_planning_hdrs}
${dart_renderer_hdrs}
${dart_utils_hdrs}
)
set(dart_srcs
${dart_gui_srcs}
${dart_planning_srcs}
${dart_renderer_srcs}
${dart_utils_srcs}
)
endif()
Expand Down
Loading