Skip to content

Unable to perform code generation on ROS 2 interfaces that use the wstring data type #322

@JohnTGZ

Description

@JohnTGZ

Hi! First of all thanks for this package, I have been trying out the examples successfully.
However, if I extend example_package/build.rs that perform code generation on installed ROS packages:

    let custom_message_paths: Vec<std::path::PathBuf> = vec![
        "/opt/ros/kilted".into(),
    ];

    let (source, dependent_paths) =
        roslibrust::codegen::find_and_generate_ros_messages_without_ros_package_path(
            custom_message_paths,
        )?;

I got the following error indicating that there is no support for wstring as of now:

  Error: SimpleError { err: "No Rust type for wstring" }

Is this expected? I saw that code generation for wstring data type might not be have implemented.
If so, what are some steps that might need to be done to enable wstring support?

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