Command line service call takes ~3s
Hi I have an RPI running ROS2 Foxy with an active service, on a local network with my Win10 host PC. I also have ROS2 Foxy installed on my host PC via this link:
https://ms-iot.github.io/ROSOnWindows...
I am able to use the ROS2 command line tools to make requests to the node running on the RPI, but each call takes ~3s to execute; the service itself just echos the sent string; in all cases the length is a few characters.
Any thoughts as to why the command line call takes so long to call and return?
UPDATE
I also see the same lag when I run it on the rpi terminal directly( ie, I am not making the call from my windows machine)
ubuntu@ubuntu:~/ros2_ws$ time ros2 service call /rpi_spi_srv rpispi/srv/Spixfer "{tx: '[02,05,AE],[DE,AD,BE,EF],[03,45,10,00,00,00]' }"
requester: making request: rpispi.srv.Spixfer_Request(tx='[02,05,AE],[DE,AD,BE,EF],[03,45,10,00,00,00]')
response:
rpispi.srv.Spixfer_Response(rx='[02,05,AE],[DE,AD,BE,EF],[03,45,10,00,00,00]')
real 0m1.855s
user 0m1.493s
sys 0m0.380s