ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You seem to have forgotten to call imu_client. Also, the imu_client argument is unused, so it is not needed for the time being. I think the following changes may move the situation forward.
...
# wait for this service to be running
def imu_client():
rospy.wait_for_service('imu_service')
imu_client = rospy.ServiceProxy('imu_service', ImuResponse)
if __name__ == "__main__":
imu_client()