Skip to content
Snippets Groups Projects
Commit 216e57e7 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Several chnages to allow correct inter-operation of all modules.

parent f8f096c0
No related branches found
No related tags found
No related merge requests found
ADD_SUBDIRECTORY(mtn)
ADD_SUBDIRECTORY(bin)
# locate the necessary dependencies
FIND_PACKAGE(robotis_mtn REQUIRED)
FIND_PACKAGE(robotis_mtn_parser REQUIRED)
FIND_PACKAGE(robotis_bin_parser REQUIRED)
# add the necessary include directories
INCLUDE_DIRECTORIES(. ./mtn ./bin)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/mtn)
INCLUDE_DIRECTORIES(.)
INCLUDE_DIRECTORIES(${robotis_mtn_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${robotis_mtn_parser_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${robotis_bin_parser_INCLUDE_DIR})
# application source files
SET(sources bioloid_motion_pages.cpp)
# application header files
SET(headers bioloid_motion_pages.h)
# create the executable file
ADD_EXECUTABLE(bioloid_motion_pages ${sources})
TARGET_LINK_LIBRARIES(bioloid_motion_pages mtn_parser bin_parser)
# link necessary libraries
ADD_DEPENDENCIES(bioloid_motion_pages mtn_parser bin_parser)
TARGET_LINK_LIBRARIES(bioloid_motion_pages ${robotis_mtn_LIBRARY})
TARGET_LINK_LIBRARIES(bioloid_motion_pages ${robotis_mtn_parser_LIBRARY})
TARGET_LINK_LIBRARIES(bioloid_motion_pages ${robotis_bin_parser_LIBRARY})
......@@ -3,17 +3,17 @@
#include <string.h>
#include "mtn_file_parser.hpp"
#include "bin_file_parser.h"
#include "robotis_bin_parser.h"
int main(const int argc,char *argv[])
{
std::vector<unsigned short int> angles;
MTN::MTN_File_Parser mtn_parser;
MTN::CMtnFileParser mtn_parser;
CBinFileParser bin_parser;
unsigned int i=0,j=0,k=0;
CMtnFile *motions;
CMtnPage *page;
CMtnStep *step;
CRobotisMtn *motions;
CRobotisPage *page;
CRobotisStep *step;
if(argc!=2)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment