#!/usr/bin/env python

import rospy
from service.srv import a,aResponse

def count_words(request):
	print(len(request.words.split()))
	return aResponse(len(request.words.split()))

#def wordcountresponse(a):
#	return a

if __name__ == "__main__":
	rospy.init_node("service")
	sevice = rospy.Service("word_count",a,count_words)
	rospy.spin()


d18d61dffd8f7ff33f6e44961bfa5155ea2b05f2
<mask token>

<mask token>


def count_words(request):
    print(len(request.words.split()))
    return aResponse(len(request.words.split()))


<mask token>

<mask token>


def count_words(request):
    print(len(request.words.split()))
    return aResponse(len(request.words.split()))


if __name__ == '__main__':
    rospy.init_node('service')
    sevice = rospy.Service('word_count', a, count_words)
    rospy.spin()

import rospy
from service.srv import a, aResponse


def count_words(request):
    print(len(request.words.split()))
    return aResponse(len(request.words.split()))


if __name__ == '__main__':
    rospy.init_node('service')
    sevice = rospy.Service('word_count', a, count_words)
    rospy.spin()

#!/usr/bin/env python

import rospy
from service.srv import a,aResponse

def count_words(request):
	print(len(request.words.split()))
	return aResponse(len(request.words.split()))

#def wordcountresponse(a):
#	return a

if __name__ == "__main__":
	rospy.init_node("service")
	sevice = rospy.Service("word_count",a,count_words)
	rospy.spin()

