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

can the master unregister a node instead of killing it when another node with the same name is started ?

asked 2018-09-17 06:06:24 -0500

jithinreju@gmail.com gravatar image

I am new to ROS and had the below question For my application ,i want the master to unregister a node instead of killing it ,when a new node with the same name is started . Is this possible in ROS ?

Please suggest possible solution , thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-09-17 07:11:31 -0500

gvdhoorn gravatar image

No, that is not supported at this time.

New nodes with a name that is already used will cause the "old node" to be killed, as all names must be unique.

Can you clarify why you'd want to have two nodes running with the same name?

edit flag offensive delete link more

Comments

I was working on a cloud application and here the latency is an issue.Since the old node is killed, to restart the node again on the machine takes some time and this was not okay for my application and hence I was looking for a solution to deregister it and then later register during connection loss

jithinreju@gmail.com gravatar image jithinreju@gmail.com  ( 2018-09-17 10:09:49 -0500 )edit

In case of ROS1 and cloud, perhaps a multimaster setup would be more appropriate?

to deregister it and then later register during connection loss

"and later REregister" you mean?

gvdhoorn gravatar image gvdhoorn  ( 2018-09-17 10:11:48 -0500 )edit

off course I could use anonymous name, but this complicates the application because of other dependencies and I wanted to explore this option of unregistering and registering ,which seemed like a quick solution .But this is possible only if I could prevent it from killing it when cloud node active

jithinreju@gmail.com gravatar image jithinreju@gmail.com  ( 2018-09-17 10:13:11 -0500 )edit

yes I mean later reregister

jithinreju@gmail.com gravatar image jithinreju@gmail.com  ( 2018-09-17 10:14:19 -0500 )edit

just to be more specific ,my application is more like an edge computing architecture, where the server keeps changing and hence I though it was better to have a single master and everytime I have a new edge server I deploy the computing ros node to it and then change to another edge server with time

jithinreju@gmail.com gravatar image jithinreju@gmail.com  ( 2018-09-17 10:31:16 -0500 )edit

Question Tools

Stats

Asked: 2018-09-17 06:06:24 -0500

Seen: 146 times

Last updated: Sep 17 '18