Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. image:: https://gitlab.com/ternaris/rosbags/badges/master/pipeline.svg :target: https://gitlab.com/ternaris/rosbags/-/commits/master :alt: pipeline status
.. image:: https://gitlab.com/ternaris/rosbags/badges/master/coverage.svg :target: https://gitlab.com/ternaris/rosbags/-/commits/master :alt: coverage report
.. image:: https://img.shields.io/pypi/pyversions/rosbags :alt: python versions
.. image:: https://img.shields.io/pypi/dm/rosbags :alt: PyPI - Downloads
Rosbags is the pure python library for everything rosbag. It contains:
Rosbags does not have any dependencies on the ROS software stacks and can be used on its own or alongside ROS1 or ROS2.
Rosbags was developed for MARV <https://gitlab.com/ternaris/marv-robotics>
_, which requires a fast, correct, and flexible library to read, manipulate, and write the various rosbag file formats.
Rosbags is published on PyPI and does not have any special dependencies. Simply install with pip::
pip install rosbags
Read and deserialize messages from rosbag1 or rosbag2 files:
.. code-block:: python
from pathlib import Path
from rosbags.highlevel import AnyReader from rosbags.typesys import Stores, get_typestore
bagpath = Path('/home/ros/rosbag_2020_03_24')
typestore = get_typestore(Stores.ROS2_FOXY)
with AnyReader([bagpath], default_typestore=typestore) as reader: connections = [x for x in reader.connections if x.topic == '/imu_raw/Imu'] for connection, timestamp, rawdata in reader.messages(connections=connections): msg = reader.deserialize(rawdata, connection.msgtype) print(msg.header.frame_id)
Convert between rosbag versions::
rosbags-convert foo.bag
rosbags-convert bar
rosbags-convert foo.bag --dst /path/to/bar
rosbags-convert bar --dst /path/to/foo.bag
Read the documentation <https://ternaris.gitlab.io/rosbags/>
_ for further information.
.. end documentation
Thank you for considering to contribute to rosbags.
To submit issues or create merge requests please follow the instructions provided in the contribution guide <https://gitlab.com/ternaris/rosbags/-/blob/master/CONTRIBUTING.rst>
_.
By contributing to rosbags you accept and agree to the terms and conditions laid out in there.
Clone the repository and setup your local checkout::
git clone https://gitlab.com/ternaris/rosbags.git
cd rosbags python -m venv venv . venv/bin/activate
pip install -r requirements-dev.txt pip install -e .
This creates a new virtual environment with the necessary python dependencies and installs rosbags in editable mode. The rosbags code base uses pytest as its test runner, run the test suite by simply invoking::
pytest
To build the documentation from its source run sphinx-build::
sphinx-build -a docs public
The entry point to the local documentation build should be available under public/index.html
.
Professional support is available from Ternaris <https://ternaris.com>
_.
FAQs
Pure Python library to read, modify, convert, and write rosbag files.
We found that rosbags demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.