std_srvs.srv/* doesn't exist

asked 2021-03-07 04:59:50 -0600

UndefinedDuck gravatar image

updated 2021-03-07 05:01:00 -0600

I'm trying to use catkin_make but it gives an error to my .cpp file:

std_srvs.srv/* : file or directory does not exist

12 | #include < std_srvs.srv/* >

I installed the ros-std-srvs by typing these commands:

sudo apt-get update -y

sudo apt-get install -y ros-std-srvs

So what's the problem?

edit retag flag offensive close merge delete

Comments

1

Is this a C++ node? Because std_srvs.srv/* is not how you'd #include a service definition header.

gvdhoorn gravatar image gvdhoorn  ( 2021-03-07 07:53:08 -0600 )edit

I thought I should include it like this, since in the python script I have: from std_srvs.srv import * and I was trying to translate it in C++

UndefinedDuck gravatar image UndefinedDuck  ( 2021-03-07 09:35:23 -0600 )edit

Have you tried to follow the Writing a simple service [server] and client?

gvdhoorn gravatar image gvdhoorn  ( 2021-03-07 10:12:43 -0600 )edit

Yes I solved thanks

UndefinedDuck gravatar image UndefinedDuck  ( 2021-03-07 11:16:18 -0600 )edit