Skip to content

Node namespace missing #349

@RussellJoyce

Description

@RussellJoyce
  • Hardware description: ESP32 / Ubuntu 20.04
  • RTOS: FreeRTOS
  • Installation type: micro_ros_setup / ESP-IDF component
  • Version or commit hash: foxy

Steps to reproduce the issue

When adding a namespace to a node in RCLC, the resulting namespace is only applied to topics associated with that node, and not the node itself.

Expected behavior

Using the following code, the freertos_int32_publisher node should be created as /test_namespace/freertos_int32_publisher, and the publisher should publish to the /test_namespace/freertos_int32_publisher topic.

rclc_node_init_default(&node, "freertos_int32_publisher", "test_namespace", &support);
rclc_publisher_init_default(&publisher, &node, ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, Int32), "freertos_int32_publisher");

Actual behavior

The freertos_int32_publisher node has no namespace set on it, but the topic does have the namespace.

Additional information

Screenshot showing the resulting rqt_graph output from the above code:
Screenshot from 2021-07-01 11-41-44

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