ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

Ros service sample code not running

when i run rosrun pkg_name and it showing nothing in rosservice list and if i close rosrun then fowlling error comming
Traceback (most recent call last):
File “/home/edu/p/ros/robot/src/robot/src/”, line 3, in
from robot.srv import WordCount,WordCountResponse
File “/home/edu/p/ros/robot/src/robot/src/”, line 4, in
File “/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/”, line 323, in init_node
raise rospy.exceptions.ROSInitException(“init_node interrupted before it could complete”)
rospy.exceptions.ROSInitException: init_node interrupted before it could complete

Following our Support Guidelines please ask questions on

1 Like