Skip to content

Example of package with srv definitions #299

Closed
@michalfita

Description

@michalfita

I have a C++ package that has a definition of a service in srv directory. That was a working one that I'm tasked to covert to Rust.

Apart of lack of good documentation easily available (#275), I think I figure out most of easy things apart this one.

My package.xml has among others:

  <buildtool_depend>ament_cargo</buildtool_depend>
  <buildtool_depend>rosidl_default_generators</buildtool_depend>
  <buildtool_depend>rosidl_generator_rs<buildtool_depend>

  <build_depend>rosidl_runtime_rs</build_depend>
  <build_depend>rosidl_generator_rs</build_depend>

  <exec_depend>rosidl_runtime_rs</exec_depend>

  <export>
    <build_type>ament_cargo</build_type>
  </export>

but I can't find anything resembling mypackage::srv::ServiceType like my C++ package has.

It would be nice if there's an example how to set up such thing right where the service isn't actually specified in extra package (like example_interfaces).

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions