Skip to content
Snippets Groups Projects
Select Git revision
  • e5a178db963dc3549a2fac5afef6fbb1a46daef7
  • main default
  • kinetic protected
  • hydro
  • indigo
  • obsolete/master
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.1.24
  • 0.1.23
  • 0.2.1
  • 0.1.22
  • 0.1.21
  • 0.1.20
  • 0.1.19
  • 0.1.18
  • 0.1.17
  • 0.1.16
  • 0.1.15
  • 0.1.14
  • 0.1.13
  • 0.1.12
  • 0.1.11
  • 0.1.10
26 results

gradlew.bat

Blame
  • CMakeLists.txt 2.46 KiB
    cmake_minimum_required(VERSION 2.8.3)
    project(sample_applications)
    
    add_compile_options(-std=c++14)
    set(GCC_COVERAGE_COMPILE_FLAGS "-fpermissive")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} ${GAZEBO_CXX_FLAGS}")
    
    # Find catkin macros and libraries if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) is used, also find other
    # catkin packages
    find_package(catkin REQUIRED
            COMPONENTS controller_manager
            effort_controllers
            gazebo_ros
            genmsg
            joint_state_controller
            joint_state_publisher
            joint_trajectory_controller
            robot_state_publisher
            roscpp
            std_msgs
            xacro
            moveit_core
            moveit_visual_tools
            moveit_ros_planning
            moveit_ros_planning_interface
            controller_interface
            hardware_interface)
    
    # System dependencies are found with CMake's conventions
    find_package(PkgConfig REQUIRED)
    
    # ################################################################################################################################
    # catkin specific configuration ##
    # ################################################################################################################################
    # The catkin_package macro generates cmake config files for your package Declare things to be passed to dependent projects
    catkin_package(CATKIN_DEPENDS
            moveit_core
            moveit_visual_tools
            moveit_ros_planning_interface
            controller_interface
            hardware_interface
            pluginlib
            DEPENDS
            # system_lib
            )
    
    # ################################################################################################################################
    # Build ##
    # ################################################################################################################################
    
    # Specify additional locations of header files Your package locations should be listed before other locations
    include_directories(${catkin_INCLUDE_DIRS})
    
    add_executable(SampleConstraintPlanner src/SampleConstraintPlanner.cpp)
    add_executable(SampleTimedCartesianPlanner src/SampleTimedCartesianPlanner.cpp)
    add_executable(SampleSimpleMotion src/SampleSimpleMotion.cpp)
    
    # Specify libraries to link a library or executable target against
    target_link_libraries(SampleConstraintPlanner ${catkin_LIBRARIES})
    target_link_libraries(SampleTimedCartesianPlanner ${catkin_LIBRARIES})
    target_link_libraries(SampleSimpleMotion ${catkin_LIBRARIES})