[ros-users] Passing arguments into service function
joao bimbo
joaommsb at gmail.com
Mon Oct 25 18:24:02 UTC 2010
Got it. Thanks.
For future memory what I did was:
ros::ServiceServer service =
n.advertiseService<testpack::switcherRequest,testpack::switcherResponse>("switcher",boost::bind(troca,_1,_2,500));
2010/10/25 Josh Faust <jfaust at willowgarage.com>
>
>> And it doesn't work.
>>
>
> First, saying "it doesn't work" is meaningless. Please include the exact
> errors you're getting in the future.
>
> Second, if you look at the API docs, advertiseService needs both the
> request and response types (and std_msgs/String is not a service type).
>
> Josh
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20101025/a5170f79/attachment-0003.html>
More information about the ros-users
mailing list