Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove parseRos2idl implementation #37

Merged
merged 2 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 4 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,51 +37,6 @@ const messageDefinition = parse(definitionStr, {ros2: true}); // for ROS 2 defin

// stringify(messageDefinition) will return a canonical string, similar to
// _definitionStr_

// ROS2IDL equivalent example
const ros2idlDefinitionStr = `
================================================================================
IDL: geometry_msgs/msg/Pose

module geometry_msgs {
module msg {
struct Pose {
geometry_msgs::msg::Point position;
geometry_msgs::msg::Quaternion orientation;
};
};
};

================================================================================
IDL: geometry_msgs/msg/Point

module geometry_msgs {
module msg {
struct Point {
double x;
double y;
double z;
};
};
};

================================================================================
IDL: geometry_msgs/msg/Quaternion

module geometry_msgs {
module msg {
struct Quaternion {
double x;
double y;
double z;
double w;
};
};
};
`;

const messageDefinition = parseRos2idl(ros2idlDefinitionStr);

// print the parsed message definition structure
console.log(JSON.stringify(messageDefinition, null, 2));
```
Expand Down Expand Up @@ -161,6 +116,10 @@ Prints:
]
```

## ROS 2 IDL Support

See (`@foxglove/ros2idl-parser`)[https://github.com/foxglove/omgidl/packages/ros2idl-parser] for our implementation of `ros2idl` schema support.

## License

@foxglove/rosmsg is licensed under the [MIT License](https://opensource.org/licenses/MIT).
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

export * from "./md5";
export * from "./parse";
export * from "./parseRos2idl";
export * from "./stringify";
Loading
Loading