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

service didn't show namespace. [closed]

asked 2016-02-04 13:32:49 -0600 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


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? gravatar image  ( 2016-02-04 13:50:31 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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" .... />
edit flag offensive delete link more


I did try to put in the group, looks like it doesn't help. gravatar image  ( 2016-02-05 09:31:37 -0600 )edit

Question Tools

1 follower


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

Seen: 343 times

Last updated: Feb 05 '16