Skip to content

Commit

Permalink
Add foxglove_msgs (#5)
Browse files Browse the repository at this point in the history
**Public-Facing Changes**
Added schemas for `foxglove_msgs/ImageMarkerArray`.


**Description**
Closes #4
  • Loading branch information
jtbandes authored Jan 8, 2022
1 parent 9342bc5 commit 076ec3e
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This repo contains Protobuf and JSON schemas generated from the common ROS message types at [@foxglove/rosmsg-msgs-common](https://github.com/foxglove/rosmsg-msgs-common). These schemas can be used to create custom [Foxglove WebSocket protocol](https://github.com/foxglove/ws-protocol) servers that take advantage of Foxglove Studio's support for ROS data visualization without using ROS.
This repo contains Protobuf and JSON schemas generated from the common ROS message types at [@foxglove/rosmsg-msgs-common](https://github.com/foxglove/rosmsg-msgs-common) and [@foxglove/rosmsg-msgs-foxglove](https://github.com/foxglove/rosmsg-msgs-foxglove). These schemas can be used to create custom [Foxglove WebSocket protocol](https://github.com/foxglove/ws-protocol) servers that take advantage of Foxglove Studio's support for ROS data visualization without using ROS.

### Generate .proto files and JSON Schemas for common ROS datatypes

Expand Down
177 changes: 177 additions & 0 deletions json-schema/ros/foxglove_msgs/ImageMarkerArray.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"devDependencies": {
"@foxglove/rosmsg-msgs-common": "^1.0.4",
"@foxglove/rosmsg-msgs-foxglove": "^2.0.3",
"@foxglove/tsconfig": "^1.1.0",
"@types/node": "^16.11.11",
"commander": "^8.3.0",
Expand Down
11 changes: 11 additions & 0 deletions proto/ros/foxglove_msgs/ImageMarkerArray.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion scripts/generate.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import fs from "fs/promises";
import path from "path";
import { definitions as allMsgDefinitions } from "@foxglove/rosmsg-msgs-common";
import { definitions as rosDefinitions } from "@foxglove/rosmsg-msgs-common";
import { definitions as foxgloveDefinitions } from "@foxglove/rosmsg-msgs-foxglove";
import { program } from "commander";
import { RosMsgDefinition } from "@foxglove/rosmsg";

const allMsgDefinitions = { ...rosDefinitions, ...foxgloveDefinitions };

const BUILTINS_PROTO = `syntax = "proto3";
package ros;
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
dependencies:
"@foxglove/rosmsg" "^2.0.0 || ^3.0.0"

"@foxglove/rosmsg-msgs-foxglove@^2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@foxglove/rosmsg-msgs-foxglove/-/rosmsg-msgs-foxglove-2.0.3.tgz#53c248f5203c7f748c3e7507504071ca4058d1a6"
integrity sha512-4YHSwazNLqjl84oc46ieoF3m0PQGcDtvQp4wGeyDD9X1//zvkK3Bb4mgnV0LC2U8OdBYiNQQy4eQaVnfVc5t8A==
dependencies:
"@foxglove/rosmsg" "^2.0.0 || ^3.0.0"

"@foxglove/rosmsg@^2.0.0 || ^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@foxglove/rosmsg/-/rosmsg-3.0.0.tgz#10ce39e42dab6804977cda297d0d317649184a16"
Expand Down

0 comments on commit 076ec3e

Please sign in to comment.