Ask Your Question

Using services. calling service.

asked 2012-01-26 20:51:30 -0500

Maurizio88 gravatar image

hi, I want to call a service from node cpp file. is it possible?

I want to create my own node and use a service from another package. what is the aim of ros::service::call?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-01-26 20:52:57 -0500

Lorenz gravatar image

Have a look at this tutorial.

edit flag offensive delete link more


thanks, but i need at least one example!
Maurizio88 gravatar image Maurizio88  ( 2012-02-09 01:24:47 -0500 )edit
The tutorial contains an example showing how to call a service with a service proxy. Look at 1.2 Writing the Client Node. If you really need to use ros::service::call, replace the by ros::service::call("add_two_ints, srv).
Lorenz gravatar image Lorenz  ( 2012-02-09 01:28:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-01-26 20:51:30 -0500

Seen: 1,485 times

Last updated: Jan 26 '12