
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@lichtblick/ros1
Advanced tools
Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer
Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer
// An example client that connects to the ROS1 turtlesim node
import { RosNode } from "@lichtblick/ros1";
import { getEnvVar, getHostname, getNetworkInterfaces, getPid, TcpSocketNode } from "@lichtblick/ros1/nodejs";
import { HttpServerNodejs } from "@lichtblick/xmlrpc/nodejs";
async function main() {
const name = "/testclient";
let rosNode: RosNode | undefined;
try {
rosNode = new RosNode({
name,
rosMasterUri: getEnvVar("ROS_MASTER_URI") ?? "http://localhost:11311/",
hostname: RosNode.GetRosHostname(getEnvVar, getHostname, getNetworkInterfaces),
pid: getPid(),
httpServer: new HttpServerNodejs(),
tcpSocketCreate: TcpSocketNode.Create,
log: console,
});
await rosNode.start();
const params = await rosNode.subscribeAllParams();
console.dir(params);
const sub = rosNode.subscribe({
topic: "/turtle1/color_sensor",
dataType: "turtlesim/Color",
});
sub.on("message", (msg, data, pub) => {
console.log(
`[MSG] ${JSON.stringify(msg)} (${
data.byteLength
} bytes from ${pub.connection.getTransportInfo()})`,
);
});
await new Promise((resolve) => setTimeout(resolve, 1000));
console.dir(sub.getStats());
} catch (err) {
const msg = (err as Error).stack ?? `${err}`;
console.error(msg);
} finally {
rosNode?.shutdown();
}
}
void main();
yarn test
@lichtblick/ros1 is licensed under the MIT License.
yarn version --[major|minor|patch]
to bump versiongit push && git push --tags
to push new tagFAQs
Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer
The npm package @lichtblick/ros1 receives a total of 256 weekly downloads. As such, @lichtblick/ros1 popularity was classified as not popular.
We found that @lichtblick/ros1 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.