Skip to content

Commit

Permalink
Replace foxglove references to Lichtblick (#1)
Browse files Browse the repository at this point in the history
* updated refs and libs

Signed-off-by: Luiz Bezerra <[email protected]>

* changed version to 1.0.0

Signed-off-by: Luiz Bezerra <[email protected]>

---------

Signed-off-by: Luiz Bezerra <[email protected]>
  • Loading branch information
luluiz authored Sep 23, 2024
1 parent 5340b57 commit 9ed7655
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 215 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ ignorePatterns:
- dist

extends:
- plugin:@foxglove/base
- plugin:@lichtblick/base

overrides:
- files: ["*.ts", "*.tsx"]
extends:
- plugin:@foxglove/typescript
- plugin:@lichtblick/typescript
parserOptions:
project: ./tsconfig.json
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
run: yarn run test:types
- name: Publish to NPM (dry run)
# `yarn publish` does not support --provenance
run: npm publish foxglove-rosmsg-msgs-common-*.tgz --provenance --access public --dry-run
run: npm publish lichtblick-rosmsg-msgs-common-*.tgz --provenance --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish to NPM
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
# `yarn publish` does not support --provenance
run: npm publish foxglove-rosmsg-msgs-common-*.tgz --provenance --access public
run: npm publish lichtblick-rosmsg-msgs-common-*.tgz --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# rosmsg-msgs-common

[![npm version](https://img.shields.io/npm/v/@foxglove/rosmsg-msgs-common.svg?style=flat)](https://www.npmjs.com/package/@foxglove/rosmsg-msgs-common)
[![npm version](https://img.shields.io/npm/v/@lichtblick/rosmsg-msgs-common.svg?style=flat)](https://www.npmjs.com/package/@lichtblick/rosmsg-msgs-common)

This library exports a map of ROS 1 and ROS 2 datatype string keys to [@foxglove/message-definition](https://github.com/foxglove/message-definition) `MessageDefinition` values for most common ROS 1 and ROS 2 message definitions. The ROS 1 message definitions were extracted from the `ros:noetic-robot-focal` Docker container using the `gendeps --cat` command. ROS 2 message definitions were extracted from [rcl_interfaces](https://github.com/ros2/rcl_interfaces), [common_interfaces](https://github.com/ros2/common_interfaces), and [unique_identifier_msgs](https://github.com/ros2/unique_identifier_msgs) repository branches using the [gendeps2](https://github.com/foxglove/rosmsg/blob/main/src/gendeps2.ts) utility.
This library exports a map of ROS 1 and ROS 2 datatype string keys to [@lichtblick/message-definition](https://github.com/lichtblick/message-definition) `MessageDefinition` values for most common ROS 1 and ROS 2 message definitions. The ROS 1 message definitions were extracted from the `ros:noetic-robot-focal` Docker container using the `gendeps --cat` command. ROS 2 message definitions were extracted from [rcl_interfaces](https://github.com/ros2/rcl_interfaces), [common_interfaces](https://github.com/ros2/common_interfaces), and [unique_identifier_msgs](https://github.com/ros2/unique_identifier_msgs) repository branches using the [gendeps2](https://github.com/lichtblick/rosmsg/blob/main/src/gendeps2.ts) utility.

## License

@foxglove/rosmsg-msgs-common is licensed under the [MIT License](https://opensource.org/licenses/MIT).
@lichtblick/rosmsg-msgs-common is licensed under the [MIT License](https://opensource.org/licenses/MIT).

## Releasing

1. Run `yarn version --[major|minor|patch]` to bump version
2. Run `git push && git push --tags` to push new tag
3. GitHub Actions will take care of the rest

## Stay in touch

Join our [Slack channel](https://foxglove.dev/slack) to ask questions, share feedback, and stay up to date on what our team is working on.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@foxglove/rosmsg-msgs-common",
"version": "3.2.1",
"description": "Common ROS message definitions using @foxglove/rosmsg",
"name": "@lichtblick/rosmsg-msgs-common",
"version": "1.0.0",
"description": "Common ROS message definitions using @lichtblick/rosmsg",
"license": "MIT",
"keywords": [
"ros",
Expand All @@ -20,13 +20,13 @@
],
"repository": {
"type": "git",
"url": "https://github.com/foxglove/rosmsg-msgs-common.git"
"url": "https://github.com/lichtblick-suite/rosmsg-msgs-common.git"
},
"author": {
"name": "Foxglove Technologies Inc",
"email": "[email protected]"
"name": "Lichtblick",
"email": "[email protected]"
},
"homepage": "https://github.com/foxglove/rosmsg-msgs-common",
"homepage": "https://github.com/lichtblick/rosmsg-msgs-common",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"typings": "dist/index.d.ts",
Expand All @@ -43,11 +43,11 @@
"test:types": "tsc --noEmit ./dist/index.d.ts"
},
"devDependencies": {
"@foxglove/eslint-plugin": "0.21.0",
"@lichtblick/eslint-plugin": "1.0.1",
"@types/node": "^18.14.2",
"@types/prettier": "^2.7.2",
"@typescript-eslint/eslint-plugin": "5.54.0",
"@typescript-eslint/parser": "5.54.0",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"esbuild": "0.17.10",
"esbuild-runner": "2.2.2",
"eslint": "8.35.0",
Expand All @@ -60,7 +60,7 @@
"typescript": "4.9.5"
},
"dependencies": {
"@foxglove/message-definition": "^0.3.1",
"@foxglove/rosmsg": "^5.0.4"
"@lichtblick/message-definition": "1.0.0",
"@lichtblick/rosmsg": "1.0.0"
}
}
}
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MessageDefinition } from "@foxglove/message-definition";
import { parse, ParseOptions } from "@foxglove/rosmsg";
import { MessageDefinition } from "@lichtblick/message-definition";
import { parse, ParseOptions } from "@lichtblick/rosmsg";
import { mkdir, readdir, readFile, writeFile } from "fs/promises";
import { join, basename, sep } from "path";
import { format, Options } from "prettier";
Expand Down Expand Up @@ -77,7 +77,7 @@ async function loadDefinitions(
const typeName = dataTypeToTypeName(dataType);
const msgdef = await readFile(filename, { encoding: "utf8" });
const schema = parse(msgdef, parseOptions);
(schema[0] as MessageDefinition).name = typeName;
schema[0]!.name = typeName;
for (const entry of schema) {
if (entry.name == undefined) {
throw new Error(`Failed to parse ${dataType} from ${filename}`);
Expand Down Expand Up @@ -165,7 +165,7 @@ function generateDefinitions(
): string {
let output = `${LICENSE}
import { MessageDefinition } from "@foxglove/message-definition";
import { MessageDefinition } from "@lichtblick/message-definition";
`;

for (const [groupName, definitions] of definitionsByGroup.entries()) {
Expand Down
Loading

0 comments on commit 9ed7655

Please sign in to comment.