From 69729d926b9ea6db9fc1e8ebacf7fdd5220950d2 Mon Sep 17 00:00:00 2001 From: pyhs Date: Thu, 6 Jul 2017 13:54:51 -0400 Subject: [PATCH] Removed Absolute Path in graphform.bzz --- CMakeLists.txt | 2 ++ buzz_scripts/{graphform.bzz => graphform.bzz.in} | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename buzz_scripts/{graphform.bzz => graphform.bzz.in} (98%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28df175..4899923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,8 @@ if(UNIX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++11") endif() +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/buzz_scripts/graphform.bzz.in ${CMAKE_CURRENT_SOURCE_DIR}/buzz_scripts/graphform.bzz) + ## Find catkin macros and libraries find_package(catkin REQUIRED COMPONENTS roscpp diff --git a/buzz_scripts/graphform.bzz b/buzz_scripts/graphform.bzz.in similarity index 98% rename from buzz_scripts/graphform.bzz rename to buzz_scripts/graphform.bzz.in index 103c31b..ea2d45e 100644 --- a/buzz_scripts/graphform.bzz +++ b/buzz_scripts/graphform.bzz.in @@ -793,9 +793,9 @@ function step(){ # function Reset(){ m_vecNodes={} - m_vecNodes = parse_graph("/home/ubuntu/ROS_WS/src/rosbuzz/buzz_scripts/include/Graph_drone.graph")#change the .graph file when necessary + m_vecNodes = parse_graph("${CMAKE_CURRENT_SOURCE_DIR}/buzz_scripts/include/Graph_drone.graph")#change the .graph file when necessary m_vecNodes_fixed={} - m_vecNodes_fixed=parse_graph_fixed("/home/ubuntu/ROS_WS/src/rosbuzz/buzz_scripts/include/Graph_fixed.graph") + m_vecNodes_fixed=parse_graph_fixed("${CMAKE_CURRENT_SOURCE_DIR}/buzz_scripts/include/Graph_fixed.graph") m_nLabel=-1 #start listening