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

sonu_patidar's profile - activity

2019-09-13 16:56:45 -0500 marked best answer ERROR: Service [/spawn] is not available.

I have the following launch file:

<launch>

<node pkg="turtlesim" name="turtle" type="turtlesim_node"/>
<node pkg="rosservice" type="rosservice" name="spawnturtle1" args="call /spawn 2 2 -1 turtle2"/>   
<node pkg="rosservice" type="rosservice" name="spawnturtle2" args="call /spawn 4 4 0.5 turtle3"/>  
<node pkg="rosservice" type="rosservice" name="spawnturtle3" args="call /spawn 2 5 0.1 turtle4"/>  
<node pkg="rosservice" type="rosservice" name="spawnturtle4" args="call /spawn 5 2 1 turtle5"/> 
<node pkg="rosservice" type="rosservice" name="spawnturtle5" args="call /spawn 3 3 0.5 turtle6"/> 

</launch>

I am getting the error as given in title, sometimes it spawns 2 turtle, sometimes 3 with the error.

Can anyone explain this weired behavior?

2019-05-09 00:00:45 -0500 received badge  Student (source)
2018-08-17 10:29:46 -0500 received badge  Famous Question (source)
2018-05-30 03:38:19 -0500 received badge  Notable Question (source)
2018-04-26 07:05:48 -0500 received badge  Popular Question (source)
2018-04-06 01:55:22 -0500 asked a question ERROR: Service [/spawn] is not available.

ERROR: Service [/spawn] is not available. I have the following launch file: <launch> <node pkg="turtlesim" na