Code Monkey home page Code Monkey logo

pwensing / dynamechs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yiping/dynamechs

2.0 1.0 0.0 3.62 MB

DynaMechs rebuilt with CMake. Original project website: http://sourceforge.net/projects/dynamechs/ . DynaMechs is orginally developed by Scott McMillan. Current version has been tested on Ubuntu 10.04 and Mac OS Lion 10.7.

CMake 0.70% HTML 0.28% C 0.93% C++ 87.66% DM 4.67% Scheme 4.15% MATLAB 0.97% M 0.01% Objective-C 0.09% CSS 0.53%

dynamechs's Introduction


First have cmake-2.8 installed

Then perform out-of-source make (recommended):

1. 
$ cd ~/ros/DynaMechs/build

2.
$ cmake ..
or 
$ cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/dynamechs
[ in Ubuntu, by default, CMAKE_INSTALL_PREFIX is set to /usr/local ]


3.
$ make
or 
$ make VERBOSE=1

4.
$ sudo make install

In Ubuntu:
the dm, dmu and dmgl libraries will be installed to /usr/local/dynamechs/lib, their header files will be installed to
/usr/local/dynamechs/dm
/usr/local/dynamechs/dmu
/usr/local/dynamechs/dmgl
respectively.

The xan_viewer executable will be installed to /usr/local/bin .



If you want to generate Eclipse project, use the following line:
$ cmake -G "Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../DynaMechs/

Note here, if you want to use Eclipse CDT as the IDE and at the same time use out-of-source build, 
you cannot make the 'build' folder a subfolder of 'DynaMechs' (which is the project source folder). 
You have to make the 'build' folder a sibling of 'DynaMechs' folder. Otherwise you won't see the generated binaries/libraries
in the treeview.




Run the test program:

For example, the crank demo executable will be generated in '~/ros/DynaMechs/build/bin_testdm' directory. In order to run it:

$ cd ~/ros/DynaMechs/build/bin_testdm
$ ls
$ cp crank ../../src/testdm/
$ cd ../../src/testdm/
$ ./crank

You need to relocate the crank executable because it looks for some external files during runtime [specifically, .cfg file, .dm file, .env file as well as the terrain and 3D model files (in ../models folder, .xan and .dat) ]   This is not very convenient, but let's live with it for just now.





Use xan_viewer to preview the .xan model

$ xan_viewer "your xan file"

(both relative path or absolute path are OK.)








Notes:

libdm.so and libdmu.so are the core libraries for DynaMechs. 
libdmgl.so provides graphic and interaction support (built upon OpenGL and GLUT) and is used in the test programs. However, keep in mind that libdm and libdmu also include some functions based on OpenGL.

DynaMechs is orginally developed by Scott McMillan. 


Notes For Mac Users:
As is, make must be in your PATH. If 10.7 this is not the case by default. The make binary is located in /Developer/usr/bin. To add this to your path, follow the steps below:
cd /etc/paths.d
touch devpath
"Now open devpath and add /Developer/usr/bin (followed by a newline) to the file. Save and close"

dynamechs's People

Contributors

pwensing avatar yiping avatar

Stargazers

Lieλ avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.