Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@foxglove/rosmsg2-serialization
Advanced tools
ROS 2 (Robot Operating System) message serialization, for reading and writing bags and network messages
ROS 2 (Robot Operating System) message serialization, for reading and writing bags and network messages
Message reader deserializes ROS 2 CDR messages into plain objects. The messages are fully deserialized.
import { MessageReader } from "@foxglove/rosmsg2-serialization";
// message definition comes from `parse()` in @foxglove/rosmsg
const reader = new MessageReader(messageDefinition);
// specify a different `timeType` for time objects compatible with ROS 1 and @foxglove/rostime
const reader = new MessageReader(messageDefinition, { timeType: "sec,nsec" });
// deserialize a buffer into an object
const message = reader.readMessage([0x00, 0x01, ...]);
// access message fields
message.header.stamp;
Convert an object, array, or primitive value into binary data using ROS 2 CDR message serialization.
import { MessageWriter } from "@foxglove/rosmsg2-serialization";
// message definition comes from `parse()` in @foxglove/rosmsg
const writer = new MessageWriter(pointStampedMessageDefinition);
// serialize the passed in object to a Uint8Array as a geometry_msgs/PointStamped message
const uint8Array = writer.writeMessage({
header: {
stamp: { sec: 0, nanosec: 0 },
frame_id: ""
},
x: 1,
y: 0,
z: 0
});
yarn test
@foxglove/rosmsg2-serialization is licensed under the MIT License.
yarn version --[major|minor|patch]
to bump versiongit push && git push --tags
to push new tagJoin our Slack channel to ask questions, share feedback, and stay up to date on what our team is working on.
FAQs
ROS 2 (Robot Operating System) message serialization, for reading and writing bags and network messages
The npm package @foxglove/rosmsg2-serialization receives a total of 1,729 weekly downloads. As such, @foxglove/rosmsg2-serialization popularity was classified as popular.
We found that @foxglove/rosmsg2-serialization 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.