Project

General

Profile

Actions

Bug #62

closed

Access to service parameters through ros

Added by Aurélie Clodic almost 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-

Description

After some tests of demo ros nodes, i've got an issue concerning the use of rosservice call.
To get the parameters of a service, i use :
aclodic@gupta > rosservice info /demo/SetSpeed
Node: /demo
URI: rosrpc://gupta:40975
Type: demo/SetSpeed
Args: speedRef

Normally to get the type of the parameters of a service i can use (cf 2.7 http://wiki.ros.org/rosservice) rossrv but there it fails :
aclodic@gupta > rosservice type demo/SetSpeed | rossrv show
Unknown srv type [demo/SetSpeed]: Cannot locate message [SetSpeed]:

Then i finally achieve to find a way to call the service with its parameters, but it seems it is not possible to use ENUM :
aclodic@gupta > rosservice call /demo/SetSpeed '{speedRef: {value: FAST}}'
(...)
NameError: (...)

a way to handle it is to do it like that :
aclodic@gupta > rosservice call /demo/SetSpeed '{speedRef: {value: 0}}'
genom_exception: False
genom_exdetail: ''

A last comment is that this sentence : "genom_exception: False" is quite confusing...

ps: would be nice to have access to "Issue" category instead of choosing between "Bug" or "Pull Request" only


Related issues 1 (0 open1 closed)

Copied to genom3-ros - Bug #63: genom_exception in service output may be confusingClosed2014-07-04Actions
Actions

Also available in: Atom PDF