Skip to content

getServiceResponseDetails seems to return incorrect type #852

Open
@ahoenerBE

Description

@ahoenerBE

Description

  • Library Version:
  • ROS Version:
  • Platform / OS:

Steps To Reproduce

rosapi defines ServiceResponseDetails as

# ServiceResponseDetails.srv
string type
---
TypeDef[] typedefs
# TypeDef.msg
string type
string[] fieldnames
string[] fieldtypes
int32[] fieldarraylen
string[] examples
string[] constnames
string[] constvalues

RosLibJS documents in its callback that the type is going to be an object that contains a key typdefs that's a list of strings.

/**
   * @callback getServiceResponseDetailsCallback
   * @param {{typedefs: string[]}} result - The result object with the following params:
   */

This seems like a documentation error?

Expected Behavior

Actual Behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions