Difference between Empty and None in Service messages
I have created a client for the service /static_map. The static_map service uses the service message of type empty request and some response type.(by empty request,I mean no data type was mentioned in request) In the client that I created:
#!/usr/bin/env python
import rospy
from std_msgs.msg import Empty
from nav_msgs.srv import GetMap,GetMapRequest
rospy.init_node("my_caller")
rospy.wait_for_service("/static_map")
my_connector=rospy.ServiceProxy("/static_map",GetMap)
my_call=GetMapRequest()
result=my_connector(my_call)
print(result)
The above code works perfectly but when I replace the line my_call=GetMapRequest() to my_call=Empty(), I get an error. So is empty data type not equal to the blank data type of the service request?