User Tools

Site Tools


getting_started:ros

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
getting_started:ros [2019/06/11 11:51] – [Preparations and Building] grafgetting_started:ros [2021/03/26 14:27] – [Preparations and Building] ursgraf
Line 29: Line 29:
 An example of a cmake call could look like this:\\ An example of a cmake call could look like this:\\
 ''cmake -DCMAKE_INSTALL_PREFIX="$install_dir" -DUSE_ROS=TRUE ..'' ''cmake -DCMAKE_INSTALL_PREFIX="$install_dir" -DUSE_ROS=TRUE ..''
 +Our build scripts already include this switch.
  
  
Line 35: Line 36:
 The CMAKE file for the EEROS application using ROS has to be expanded as follows: The CMAKE file for the EEROS application using ROS has to be expanded as follows:
 <code> <code>
-cmake_minimum_required(VERSION 2.8)+cmake_minimum_required(VERSION 3.5.1)
 project(testProject) project(testProject)
    
 +set(CMAKE_CXX_STANDARD 14)
 +
 ## ROS ## ROS
 message(STATUS "looking for package 'ROS'") message(STATUS "looking for package 'ROS'")
Line 58: Line 61:
 include_directories(${EEROS_INCLUDE_DIR};${EEROS_LIBUCL_INCLUDE_DIR}) include_directories(${EEROS_INCLUDE_DIR};${EEROS_LIBUCL_INCLUDE_DIR})
 link_directories(${EEROS_LIB_DIR};${EEROS_LIBUCL_LINK_DIR}) link_directories(${EEROS_LIB_DIR};${EEROS_LIBUCL_LINK_DIR})
-  
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") 
    
 add_executable(testProject main.cpp) add_executable(testProject main.cpp)
getting_started/ros.txt · Last modified: 2023/02/09 12:04 by ursgraf