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

Rename: apps --> examples #685

Merged
merged 4 commits into from
Apr 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,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
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.

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
14 changes: 7 additions & 7 deletions apps/CMakeLists.txt → examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# A list of applications
set_property(DIRECTORY PROPERTY FOLDER Apps)
# A list of examples
set_property(DIRECTORY PROPERTY FOLDER Examples)

# Automatically identify all directories in the apps folder
# Automatically identify all directories in the examples folder
file(GLOB children RELATIVE ${CMAKE_CURRENT_LIST_DIR} "*")
set(directories "")
foreach(child ${children})
Expand All @@ -13,7 +13,7 @@ foreach(child ${children})
endforeach(child)

# List of all the subdirectories to include
foreach(APPDIR ${directories})
add_subdirectory(${APPDIR})
dart_add_example(${APPDIR})
endforeach(APPDIR)
foreach(EXAMPLE_DIR ${directories})
add_subdirectory(${EXAMPLE_DIR})
dart_add_example(${EXAMPLE_DIR})
endforeach(EXAMPLE_DIR)
10 changes: 10 additions & 0 deletions examples/addDeleteSkels/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
###############################################################
# This file can be used as-is in the directory of any example,#
# however you might need to specify your own dependencies in #
# target_link_libraries if your app depends on more than dart #
###############################################################
get_filename_component(example_name ${CMAKE_CURRENT_LIST_DIR} NAME)
file(GLOB ${example_name}_srcs "*.cpp" "*.h" "*.hpp")
add_executable(${example_name} ${${example_name}_srcs})
target_link_libraries(${example_name} dart dart-gui)
set_target_properties(${example_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef APPS_ADDDELETESKELS_MYWINDOW_H_
#define APPS_ADDDELETESKELS_MYWINDOW_H_
#ifndef EXAMPLES_ADDDELETESKELS_MYWINDOW_H_
#define EXAMPLES_ADDDELETESKELS_MYWINDOW_H_

#include "dart/dart.h"
#include "dart/gui/gui.h"
Expand All @@ -63,4 +63,4 @@ class MyWindow : public dart::gui::SimWindow {
double _mass = 0.1);
};

#endif // APPS_ADDDELETESKELS_MYWINDOW_H_
#endif // EXAMPLES_ADDDELETESKELS_MYWINDOW_H_
11 changes: 11 additions & 0 deletions examples/atlasSimbicon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
###############################################################
# This file can be used as-is in the directory of any example,#
# however you might need to specify your own dependencies in #
# target_link_libraries if your app depends on more than dart #
###############################################################
get_filename_component(example_name ${CMAKE_CURRENT_LIST_DIR} NAME)
file(GLOB ${example_name}_srcs "*.cpp" "*.h" "*.hpp")
add_executable(${example_name} ${${example_name}_srcs})
target_link_libraries(${example_name} dart dart-gui dart-utils-urdf)
set_target_properties(${example_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/Controller.h"
#include "examples/atlasSimbicon/Controller.h"

#include "apps/atlasSimbicon/State.h"
#include "apps/atlasSimbicon/StateMachine.h"
#include "apps/atlasSimbicon/TerminalCondition.h"
#include "examples/atlasSimbicon/State.h"
#include "examples/atlasSimbicon/StateMachine.h"
#include "examples/atlasSimbicon/TerminalCondition.h"

using namespace std;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef APPS_ATLASROBOT_CONTROLLER_H_
#define APPS_ATLASROBOT_CONTROLLER_H_
#ifndef EXAMPLES_ATLASSIMBICON_CONTROLLER_H_
#define EXAMPLES_ATLASSIMBICON_CONTROLLER_H_

#include <vector>

Expand Down Expand Up @@ -184,4 +184,4 @@ class Controller
dart::dynamics::Skeleton::Configuration mInitialState;
};

#endif // APPS_ATLASROBOT_CONTROLLER_H_
#endif // EXAMPLES_ATLASSIMBICON_CONTROLLER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/Humanoid.h"
#include "examples/atlasSimbicon/Humanoid.h"

#include "apps/atlasSimbicon/State.h"
#include "examples/atlasSimbicon/State.h"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef APPS_ATLASROBOT_HUMANOID_H_
#define APPS_ATLASROBOT_HUMANOID_H_
#ifndef EXAMPLES_ATLASSIMBICON_HUMANOID_H_
#define EXAMPLES_ATLASSIMBICON_HUMANOID_H_

#include <vector>
#include <string>
Expand Down Expand Up @@ -123,4 +123,4 @@ class AtlasRobot : public Humanoid
protected:
};

#endif // APPS_ATLASROBOT_HUMANOID_H_
#endif // EXAMPLES_ATLASSIMBICON_HUMANOID_H_
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

#include "dart/dart.h"

#include "apps/atlasSimbicon/MyWindow.h"
#include "apps/atlasSimbicon/Controller.h"
#include "examples/atlasSimbicon/MyWindow.h"
#include "examples/atlasSimbicon/Controller.h"

using namespace std;
using namespace Eigen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/MyWindow.h"
#include "examples/atlasSimbicon/MyWindow.h"

//==============================================================================
MyWindow::MyWindow(Controller* _controller)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef APPS_ATLASROBOT_MYWINDOW_H_
#define APPS_ATLASROBOT_MYWINDOW_H_
#ifndef EXAMPLES_ATLASSIMBICON_MYWINDOW_H_
#define EXAMPLES_ATLASSIMBICON_MYWINDOW_H_

#include "dart/dart.h"
#include "dart/gui/gui.h"

#include "apps/atlasSimbicon/Controller.h"
#include "examples/atlasSimbicon/Controller.h"

/// \brief class MyWindow
class MyWindow : public dart::gui::SimWindow
Expand Down Expand Up @@ -73,4 +73,4 @@ class MyWindow : public dart::gui::SimWindow
Controller* mController;
};

#endif // APPS_ATLASROBOT_MYWINDOW_H_
#endif // EXAMPLES_ATLASSIMBICON_MYWINDOW_H_
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/State.h"
#include "examples/atlasSimbicon/State.h"

#include "apps/atlasSimbicon/TerminalCondition.h"
#include "examples/atlasSimbicon/TerminalCondition.h"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
6 changes: 3 additions & 3 deletions apps/atlasSimbicon/State.h → examples/atlasSimbicon/State.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef APPS_ATLASROBOT_STATE_H_
#define APPS_ATLASROBOT_STATE_H_
#ifndef EXAMPLES_ATLASSIMBICON_STATE_H_
#define EXAMPLES_ATLASSIMBICON_STATE_H_

#include <map>
#include <vector>
Expand Down Expand Up @@ -336,4 +336,4 @@ class State
Eigen::VectorXd mDesiredJointPositionsBalance;
};

#endif // APPS_ATLASROBOT_STATE_H_
#endif // EXAMPLES_ATLASSIMBICON_STATE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/StateMachine.h"
#include "examples/atlasSimbicon/StateMachine.h"

#include "apps/atlasSimbicon/State.h"
#include "examples/atlasSimbicon/State.h"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef APPS_ATLASROBOT_STATEMACHINE_H_
#define APPS_ATLASROBOT_STATEMACHINE_H_
#ifndef EXAMPLES_ATLASSIMBICON_STATEMACHINE_H_
#define EXAMPLES_ATLASSIMBICON_STATEMACHINE_H_

#include <vector>
#include <string>
Expand Down Expand Up @@ -129,4 +129,4 @@ class StateMachine
State* _findState(const std::string& _name) const;
};

#endif // APPS_ATLASROBOT_STATEMACHINE_H_
#endif // EXAMPLES_ATLASSIMBICON_STATEMACHINE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/TerminalCondition.h"
#include "examples/atlasSimbicon/TerminalCondition.h"

#include "apps/atlasSimbicon/State.h"
#include "examples/atlasSimbicon/State.h"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down