Skip to content
Snippets Groups Projects
Commit 62451f3e authored by asantamaria's avatar asantamaria
Browse files

changed some names to uam_task_ctrl

parent 6277bd0b
No related branches found
No related tags found
No related merge requests found
#edit the following line to add the librarie's header files
FIND_PATH(quadarm_task_priority_ctrl_INCLUDE_DIR quadarm_task_priority_ctrl.h /usr/include/iridrivers /usr/local/include/iridrivers)
FIND_LIBRARY(quadarm_task_priority_ctrl_LIBRARY
NAMES quadarm_task_priority_ctrl
PATHS /usr/lib /usr/lib/iridrivers /usr/local/lib /usr/local/lib/iridrivers)
IF (quadarm_task_priority_ctrl_INCLUDE_DIR AND quadarm_task_priority_ctrl_LIBRARY)
SET(quadarm_task_priority_ctrl_FOUND TRUE)
ENDIF (quadarm_task_priority_ctrl_INCLUDE_DIR AND quadarm_task_priority_ctrl_LIBRARY)
IF (quadarm_task_priority_ctrl_FOUND)
IF (NOT quadarm_task_priority_ctrl_FIND_QUIETLY)
MESSAGE(STATUS "Found quadarm_task_priority_ctrl: ${quadarm_task_priority_ctrl_LIBRARY}")
ENDIF (NOT quadarm_task_priority_ctrl_FIND_QUIETLY)
ELSE (quadarm_task_priority_ctrl_FOUND)
IF (quadarm_task_priority_ctrl_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find quadarm_task_priority_ctrl")
ENDIF (quadarm_task_priority_ctrl_FIND_REQUIRED)
ENDIF (quadarm_task_priority_ctrl_FOUND)
#edit the following line to add the librarie's header files
FIND_PATH(uam_task_ctrl_INCLUDE_DIR uam_task_ctrl.h /usr/include/iridrivers /usr/local/include/iridrivers)
FIND_LIBRARY(uam_task_ctrl_LIBRARY
NAMES uam_task_ctrl
PATHS /usr/lib /usr/lib/iridrivers /usr/local/lib /usr/local/lib/iridrivers)
IF (uam_task_ctrl_INCLUDE_DIR AND uam_task_ctrl_LIBRARY)
SET(uam_task_ctrl_FOUND TRUE)
ENDIF (uam_task_ctrl_INCLUDE_DIR AND uam_task_ctrl_LIBRARY)
IF (uam_task_ctrl_FOUND)
IF (NOT uam_task_ctrl_FIND_QUIETLY)
MESSAGE(STATUS "Found uam_task_ctrl: ${uam_task_ctrl_LIBRARY}")
ENDIF (NOT uam_task_ctrl_FIND_QUIETLY)
ELSE (uam_task_ctrl_FOUND)
IF (uam_task_ctrl_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find uam_task_ctrl")
ENDIF (uam_task_ctrl_FIND_REQUIRED)
ENDIF (uam_task_ctrl_FOUND)
......@@ -2,8 +2,8 @@ Copyright (C)
Author asantamaria (asantamaria@iri.upc.edu)
All rights reserved.
This file is part of quadarm_task_priority_ctrl library
quadarm_task_priority_ctrl library is free software: you can redistribute it and/or modify
This file is part of uam_task_ctrl library
uam_task_ctrl library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
at your option) any later version.
......
PROJECT_NAME = "quadarm_task_priority_ctrl"
PROJECT_NAME = "uam_task_ctrl"
/*! \mainpage quadarm_task_priority_ctrl
/*! \mainpage uam_task_ctrl
\section Introduction
......@@ -84,16 +84,16 @@
To build a new application using these library, first it is necessary to locate if the library
has been installed or not using the following command
- FIND_PACKAGE(quadarm_task_priority_ctrl REQUIRED)
- FIND_PACKAGE(uam_task_ctrl REQUIRED)
In the case that the package is present, it is necessary to add the header files directory to
the include directory path by using
- INCLUDE_DIRECTORIES(${quadarm_task_priority_ctrl_INCLUDE_DIR})
- INCLUDE_DIRECTORIES(${uam_task_ctrl_INCLUDE_DIR})
Finally, it is also nevessary to link with the desired libraries by using the following command
- TARGET_LINK_LIBRARIES(<executable name> ${quadarm_task_priority_ctrl_LIBRARY})
- TARGET_LINK_LIBRARIES(<executable name> ${uam_task_ctrl_LIBRARY})
.
\section License
......
# driver source files
SET(sources quadarm_task_priority_ctrl.cpp)
SET(sources uam_task_ctrl.cpp)
# application header files
SET(headers quadarm_task_priority_ctrl.h)
SET(headers uam_task_ctrl.h)
# locate the necessary dependencies
......@@ -28,20 +28,20 @@ SET(CMAKE_BUILD_TYPE release)
INCLUDE_DIRECTORIES(. ${EIGEN3_INCLUDE_DIR} ${Boost_INCLUDE_DIRS})
# create the shared library
ADD_LIBRARY(quadarm_task_priority_ctrl SHARED ${sources})
ADD_LIBRARY(uam_task_ctrl SHARED ${sources})
#TARGET_LINK_LIBRARIES(quadarm_task_priority_ctrl ${EIGEN_LIBRARY} ${Boost_LIBRARIES} orocos-kdl)
TARGET_LINK_LIBRARIES(quadarm_task_priority_ctrl ${EIGEN3_LIBRARY} ${Boost_LIBRARIES})
#TARGET_LINK_LIBRARIES(uam_task_ctrl ${EIGEN_LIBRARY} ${Boost_LIBRARIES} orocos-kdl)
TARGET_LINK_LIBRARIES(uam_task_ctrl ${EIGEN3_LIBRARY} ${Boost_LIBRARIES})
# link necessary libraries
INSTALL(TARGETS quadarm_task_priority_ctrl
INSTALL(TARGETS uam_task_ctrl
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iridrivers
ARCHIVE DESTINATION lib/iridrivers)
INSTALL(FILES ${headers} DESTINATION include/iridrivers)
INSTALL(FILES ../Findquadarm_task_priority_ctrl.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
INSTALL(FILES ../Finduam_task_ctrl.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
#ADD_SUBDIRECTORY(examples)
#include "quadarm_task_priority_ctrl.h"
#include "uam_task_ctrl.h"
#include<Eigen/StdVector>
......
#ifndef _QUADARM_TASK_PRIORITY_CTRL_H
#define _QUADARM_TASK_PRIORITY_CTRL_H
#ifndef _UAM_TASK_CTRL_H
#define _UAM_TASK_CTRL_H
#include <stdio.h>
#include <iostream>
......
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