Hi,
about exercise 3.5, I creates the working requested server
when I execute the command to call the service I get the pose of the robot even if I get the error below too.
user:~/catkin_ws/src/get_pose/launch$ rosservice call /get_pose_service “{}”
ERROR: service [/get_pose_service] responded with an error: b’service cannot process request: service handler returned None’
I get the pose
user:/opt/ros/noetic/share/std_srvs/srv$ roslaunch get_pose get_pose_launch.launch
… logging to /home/user/.ros/log/83877550-9966-11ec-aa79-0242ac120007/roslaunch-1_xterm-13947.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://1_xterm:37491/
SUMMARY
PARAMETERS
- /rosdistro: noetic
- /rosversion: 1.15.9
NODES
/
get_pose_node (get_pose/get_pose_service.py)
ROS_MASTER_URI=http://1_simulation:11311
process[get_pose_node-1]: started with pid [13955]
[INFO] [1646150041.332582, 7447.687000]: [‘position: 0.07, 0.00, 0.00 - orientation: 0.00, 0.00, -0.01, 1.00’]
[INFO] [1646150407.848289, 7813.066000]: [‘position: -1.98, 3.90, 0.00 - orientation: 0.00, 0.00, 1.00, 0.03’]
[INFO] [1646150602.986185, 8007.600000]: [‘position: 13.07, 11.58, 0.00 - orientation: 0.00, 0.00, 0.71, 0.71’]
How can I avoid this error?
thanks
Salvatore