ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Tutorials/WritingServiceClient

asked 2018-04-05 01:23:25 -0500

DeltaWaldo gravatar image

updated 2018-04-05 01:41:37 -0500

gvdhoorn gravatar image

Hello, I am working through the beginner tutorials and have been trying everything to get the beginner_tutorials node to make. It keeps failing at the set target properties command of my cmakelist. I have reproduced it below, I also have put in my .bashrc (last three/four lines) I'm running on the Windows sublayer (ubuntu) if that matters. Any help is appreciated.

cmake_minimum_required(VERSION 2.8.3)  
project(beginner_tutorials)  
find_package(catkin REQUIRED COMPONENTS  
  roscpp  
  rospy  
  std_msgs  
  message_generation  
)  

 add_message_files(  
   FILES  
   Num.msg  
 )  

 add_service_files(  
   FILES  
   AddTwoInts.srv  
 )  
 generate_messages(  
   DEPENDENCIES  
   std_msgs  
 )  
catkin_package(  
 # INCLUDE_DIRS include  
 # LIBRARIES beginner_tutorials  
  CATKIN_DEPENDS roscpp rospy std_msgs message_runtime  
 # DEPENDS system_lib  
)  
include_directories(  
# include  
  ${catkin_INCLUDE_DIRS}  
)  
 set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")

.bashrc

export DISPLAY=:0  
EDITOR='nano -w'  
source /opt/ros/kinetic/setup.bash  
source devel/setup.bash  
source ~/catkin_ws/devel/setup.bash
edit retag flag offensive close merge delete

Comments

1

You'll need to include an error message or a description of what doesn't work, because we can't guess these things ..

gvdhoorn gravatar image gvdhoorn  ( 2018-04-05 01:41:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-04-05 01:43:55 -0500

ahendrix gravatar image

It appears that you are missing the add_executable line in your CMakeLists.txt to define the target name and the sources to use when compiling that target. Without knowing exactly which tutorial you're following (please provide a link), I'm not sure what the right thing to put there is.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-04-05 01:23:25 -0500

Seen: 83 times

Last updated: Apr 05 '18