Skip to content

Commit

Permalink
Add back rigidCube to the in-source build list (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 authored May 14, 2017
1 parent 7fc0465 commit 02c769a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ if(TARGET dart)
dart_add_example(examples/mixedChain dart dart-utils-urdf dart-gui)
dart_add_example(examples/operationalSpaceControl dart dart-utils-urdf dart-gui)
dart_add_example(examples/rigidChain dart dart-utils-urdf dart-gui)
dart_add_example(examples/rigidCubes dart dart-utils-urdf dart-gui)
dart_add_example(examples/rigidLoop dart dart-utils-urdf dart-gui)
dart_add_example(examples/rigidShapes dart dart-utils-urdf dart-gui)
dart_add_example(examples/simpleFrames dart dart-utils-urdf dart-gui)
Expand Down
3 changes: 1 addition & 2 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$COMPILER" = "CLANG" ]; then exit; fi
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$COMPILER" = "CLANG" ]; then exit; fi

if [ "$TRAVIS_OS_NAME" = "linux" ]; then 'ci/install_linux.sh' ; fi
if [ "$TRAVIS_OS_NAME" = "osx" ]; then 'ci/install_osx.sh' ; fi

6 changes: 4 additions & 2 deletions examples/rigidCubes/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
#include <iostream>

#include <dart/dart.hpp>
#include <dart/utils/utils.hpp>

#include "MyWindow.hpp"

int main(int argc, char* argv[]) {
int main(int argc, char* argv[])
{
// create and initialize the world
dart::simulation::WorldPtr myWorld
= dart::utils::SkelParser::readWorld("file://sample/skel/cubes.skel");
= dart::utils::SkelParser::readWorld("dart://sample/skel/cubes.skel");
assert(myWorld != nullptr);
Eigen::Vector3d gravity(0.0, -9.81, 0.0);
myWorld->setGravity(gravity);
Expand Down

0 comments on commit 02c769a

Please sign in to comment.