From 7a9d7cfea2fc54b7dfac904deb1dd2342f65c056 Mon Sep 17 00:00:00 2001 From: Shingo Kitagawa Date: Thu, 1 Dec 2022 20:14:04 +0900 Subject: [PATCH] use float for waitForService --- roseus/roseus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roseus/roseus.cpp b/roseus/roseus.cpp index 94fc9b17f..63e31df91 100644 --- a/roseus/roseus.cpp +++ b/roseus/roseus.cpp @@ -1082,15 +1082,16 @@ pointer ROSEUS_WAIT_FOR_SERVICE(register context *ctx,int n,pointer *argv) { isInstalledCheck; string service; + numunion nu; ckarg2(1,2); if (isstring(argv[0])) service = ros::names::resolve((char *)get_string(argv[0])); else error(E_NOSTRING); - int32_t timeout = -1; + float timeout = -1; if( n > 1 ) - timeout = (int32_t)ckintval(argv[1]); + timeout = ckfltval(argv[1]); bool bSuccess = service::waitForService(service, ros::Duration(timeout));