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

service didn't show namespace. [closed]

asked 2016-02-04 13:32:49 -0500

chenchengshao@gmail.com gravatar image
  1. launch file specify the node "surface_service" in namespace "opnear3".

  2. the node "surface_service" has the function to provide one service "select service" ros::ServiceServer surface_server_; surface_server_ = nh.advertiseService( "select_service", &xxxx::select_callback, this);

  3. roslaunch launch file, I'm expecting the service name of "select_service" will be /opnear3/select_service when using rosservice list. in stead, in only shows /select_service.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-04-20 14:21:02.901473

Comments

Because I want to get another service like /opnear4/select_service by running same ROS node in different namespace, is there any way to create service with namespace on it?

chenchengshao@gmail.com gravatar image chenchengshao@gmail.com  ( 2016-02-04 13:50:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-05 02:01:57 -0500

F.Brosseau gravatar image

Did you try to include your node in a group in your launch file ?

<group ns="opnear3">
    <node name="surface_service" .... />
</group>
edit flag offensive delete link more

Comments

I did try to put in the group, looks like it doesn't help.

chenchengshao@gmail.com gravatar image chenchengshao@gmail.com  ( 2016-02-05 09:31:37 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-04 13:32:49 -0500

Seen: 346 times

Last updated: Feb 05 '16