Saravanan666/pypi-org huggingface dataset:
Package: rosbag-merge
Getting Startedpip3 install rosbag-mergeORpython3 -m pip install .This package currently uses icecream as the logger in order to better identify the locations of bugs. Eventually the logging will happen through print.UsageBasic elements for usage are an in path and out path for data being processed and created, respectively.--outbag_nameDefine an outbag name using the flag.--input_pathsDefine input paths for the data of interest. (csv or bags)--output_pathDefine where to save newly created data (csv or bags)--topicsTopics which should be filtered. Use this to speed up all of the processing. To use all topics then simply omit the flag.--topic-fileTopics which should be filtered. Use this to speed up all of the processing. To use all topics then simply omit the flag. A file representing a list of topics. One topic per line.NOTE : More arguments are available if you want to use specific CSV's or Bag files. Runrosbag-merge -hfor more information.Some environment variablesexport IN_PATH=/path/to/data
export OUT_PATH=/path/to/data
export OUTBAG_NAME=new-bag-name
export INPUT_TOPICS='/topic/namespace_1 /topic/namespace_2 /topic/namespace_3'Merge Bag FilesMerge all the bag files from the current directory.rosbag-merge --write_bag --outbag_name $OUTBAG_NAMEMake a merged bage with all topics.rosbag-merge --input_paths $IN_PATH --output_path $OUT_PATH --outbag_name $OUTBAG_NAME --write_bagTo merge bag files with select topics, and make single topics csvs.rosbag-merge --input_paths $IN_PATH --output_path $OUT_PATH --outbag_name $OUTBAG_NAME --topics $INPUT_TOPICS --write_bagTo merge bag files with select topics, and make single topics csvs.rosbag-merge --input_paths $IN_PATH --output_path $OUT_PATH --outbag_name $OUTBAG_NAME --write_bag --write_csvs
Package: rosbag_pandas
RosbagPandas provides a quick way to load rosbag files
into a Pandas Dataframe object for data viewing
and manipulation. Usage is similar to the following:#!/usr/bin.env python
import rosbag_pandasdataframe = rosbag_pandas.bag_to_dataframe(‘file.bag’)
#awesome data processingIn addition to parsing and taking in the whole
bag the function can use the include and exclude
parameters to limit the topics read into the dataframe.Examples include using a regular expression to filter or add topics
as well as filtering or adding from a list.Also installs two scripts:bag_graph.py which allows a user to produce a quick graph of data in a bag file.bag2csv.py allows a user to quickly convert data in a rosbag into csv format.
Package: rosbags
RosbagsRosbags is thepure pythonlibrary for everything rosbag. It contains:highleveleasy-to-use interfaces,rosbag2reader and writer,rosbag1reader and writer,extensibletype system with serializers and deserializers,efficient converterbetween rosbag1 and rosbag2,and more.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 forMARV, which requires a fast, correct, and flexible library to read, manipulate, and write the various rosbag file formats.Getting startedRosbags is published on PyPI and does not have any special dependencies. Simply install with pip:pip install rosbagsRead and deserialize messages from rosbag1 or rosbag2 files:frompathlibimportPathfromrosbags.highlevelimportAnyReader# create reader instance and open for readingwithAnyReader([Path('/home/ros/rosbag_2020_03_24')])asreader:connections=[xforxinreader.connectionsifx.topic=='/imu_raw/Imu']forconnection,timestamp,rawdatainreader.messages(connections=connections):msg=reader.deserialize(rawdata,connection.msgtype)print(msg.header.frame_id)Convert between rosbag versions:# Convert "foo.bag", result will be "foo/"
rosbags-convert foo.bag

# Convert "bar", result will be "bar.bag"
rosbags-convert bar

# Convert "foo.bag", save the result as "bar"
rosbags-convert foo.bag --dst /path/to/bar

# Convert "bar", save the result as "foo.bag"
rosbags-convert bar --dst /path/to/foo.bagDocumentationRead thedocumentationfor further information.ContributingThank you for considering to contribute to rosbags.To submit issues or create merge requests please follow the instructions provided in thecontribution guide.By contributing to rosbags you accept and agree to the terms and conditions laid out in there.DevelopmentClone 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:pytestTo build the documentation from its source run sphinx-build:sphinx-build -a docs publicThe entry point to the local documentation build should be available underpublic/index.html.SupportProfessional support is available fromTernaris.
Package: rosbags-dataframe
Rosbags-dataframeRosbags-dataframe a python library to ease the create of pandas dataframes from rosbag messages. It is part of the largerRosbagsecosystem.Rosbags-dataframe does not have any dependencies on the ROS software stacks and can be used on its own or alongside ROS1 or ROS2.Getting startedRosbags-dataframe is published on PyPI and does not have any special dependencies. Simply install with pip:pip install rosbags-dataframeGet a dataframe from a rosbag:frompathlibimportPathfromrosbags.dataframeimportget_dataframefromrosbags.highlevelimportAnyReaderwithAnyReader([Path('test1.bag'),Path('test2.bag')])asreader:dataframe=get_dataframe(reader,'/gps',['latitude','longitude'])DocumentationRead thedocumentationfor further information.ContributingThank you for considering to contribute to rosbags-dataframe.To submit issues or create merge requests please follow the instructions provided in thecontribution guide.By contributing to rosbags-dataframe you accept and agree to the terms and conditions laid out in there.DevelopmentClone the repository and setup your local checkout:git clone https://gitlab.com/ternaris/rosbags-dataframe.git

cd rosbags-dataframe
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-dataframe in editable mode. The rosbags-dataframe code base uses pytest as its test runner, run the test suite by simply invoking:pytestTo build the documentation from its source run sphinx-build:sphinx-build -a docs publicThe entry point to the local documentation build should be available underpublic/index.html.SupportProfessional support is available fromTernaris.
Package: rosbags-image
Rosbags-imageRosbags-image is thepure pythonlibrary for interacting with image or compressed image messages and it aims to provide the same functionality as cv_bridge. It is part of the largerRosbagsecosystem.Rosbags-image does not have any dependencies on the ROS software stacks and can be used on its own or alongside ROS1 or ROS2.Getting startedRosbags-image is published on PyPI and does not have any special dependencies. Simply install with pip:pip install rosbags-imageConvert sensor_msgs/msg/Image message into OpenCV image:fromrosbags.imageimportmessage_to_cvimage# msg is rosbags Image or CompressedImage message instancemsg=...# get opencv image without any conversionsimg=message_to_cvimage(msg)# get opencv image and convert to bgr8 color spaceimg=message_to_cvimage(msg,'bgr8')DocumentationRead thedocumentationfor further information.ContributingThank you for considering to contribute to rosbags-image.To submit issues or create merge requests please follow the instructions provided in thecontribution guide.By contributing to rosbags-image you accept and agree to the terms and conditions laid out in there.DevelopmentClone the repository and setup your local checkout:git clone https://gitlab.com/ternaris/rosbags-image.git

cd rosbags-image
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-image in editable mode. The rosbags-image code base uses pytest as its test runner, run the test suite by simply invoking:pytestTo build the documentation from its source run sphinx-build:sphinx-build -a docs publicThe entry point to the local documentation build should be available underpublic/index.html.SupportProfessional support is available fromTernaris.
Package: rosbag-tools
rosbag-toolsA ROS-agnostic toolbox for common rosbag operationsThis package bundles different tools that can be applied on ROS 1 or ROS 2 rosbags with no dependency on the ROS software stack.Installationrosbag-toolscan be installed from PyPi :pipinstallrosbag-toolsSome tools, liketopic-compare, have a graphing feature that requiresmatplotlib. Installrosbag-tools[plot]to install graph dependencies.pipinstallrosbag-tools[plot]rosbag-toolsbeing a CLI application, it can be quickly installed withpipx:pipxinstallrosbag-tools
pipxinstallrosbag-tools[plot]# with plotToolsclipsplitcompute-durationexport-odometrytopic-comparetopic-removeUsageEach tool inrosbag-toolscan be used both as a command line application and in Python code.Command lineA basic use ofrosbag-toolsis to simply call it from the command line.rosbag-tools `command` <options>ContributingPull requests and issues are welcome ! Don't hesitate to contribute !(Recommended)flitis used to package this module. Development packages can be installed usingflit:python -m venv venvsource venv/bin/activatepip install flitflit install(Alternative) Development requirements can be installed using pip :python -m venv venvsource venv/bin/activatepip install -r requirements/requirements-dev.txtAcknowledgementsThis package relies strongly onrosbagsfor working with rosbags. Hats off to the team atTernarisfor developing and maintaining it.LicenseThis project is licensed under aGNU GPLv3license.
Package: rosbag-topic-compare
rosbag-topic-compareDetermine the topic consistency in a rosbag datasetThis package is a rewriting ofrosbag-comparefor rosbags in both ROS1 and ROS2.Use caseSay you have a bunch of rosbags inside a folder and you don't know whether or not all those rosbags have the same topics.rosbag-topic-comparewill :retrieve the topics contained in each rosbagexport a summary of the ros topics in a JSON fileplot the topics that are missing for each rosbag :Installationrosbag-topic-comparecan be installed from PyPi :$pipinstallrosbag-topic-compareOr, if you want the plotting feature:$pipinstallrosbag-topic-compare[plot]Usagerosbag-topic-comparecan be used both as a command line application and in Python code.Command lineA basic use ofrosbag-topic-compareis to simply call it with the path of the folder that contains rosbags. This will simply print out a YAML string with a summary of the comparison.$rosbag-topic-compare/path/to/folder/with/rosbagsYou can also generate a figure that will show what topics are missing in each rosbag with the--plot/-pflag. This figure helps when you want to find out if all rosbags in a dataset contains all or some of the expected topics.$rosbag-topic-compare-p/path/to/your/rosbag/datasetHere are all the CLI options ofrosbag-topic-compare:$rosbag-topic-compare-husage: rosbag-topic-compare [-h] [-m METADATA] [-p] [--fig FIG] bagfolderpositional arguments:bagfolder             Dataset directory pathoptions:-h, --help            show this help message and exit-m METADATA, --metadata METADATAMetadata summary output path-p, --plot            Plotting mode : display a summary plot--fig FIG, --summary-figure-path FIGPath for saving a topic consistency figurePython Code APIYou can also callrosbag-topic-comparedirectly into your Python code :fromrosbag_compareimportBagTopicComparatordata_path="/path/to/folder/with/rosbags"rbag_comp=BagTopicComparator(data_path)# This step may take time as it open each rosbag separately# Will show a progress barrbag_comp.extract_data()# Export summary to a JSON filerbag_comp.export_metadata()# Defaults to topics_<foldername>.jsonrbag_comp.export_metadata("topics.json")rbag_comp.export_metadata("topics.yaml")# Generate a figure with the name of the# missing topics for each rosbagrbag_comp.plot()# Show figurerbag_comp.plot(img_path="topics_summary.jpg")# Save figure to path# Create a new comparator from exported metadatarbag_comp=BagTopicComparator.from_json("topics.json")rbag_comp=BagTopicComparator.from_yaml("topics.yaml")ContributingPull requests are welcome and don't hesitate to open issues(Recommended)flitis used to package this module. Development packages can be installed usingflit:$python-mvenvvenv$sourcevenv/bin/activate$pipinstallflit$flitinstall(Alternative) Development requirements can be installed using pip :$python-mvenvvenv$sourcevenv/bin/activate$pipinstall-rrequirements/requirements-dev.txtAcknowledgementsThis package relies strongly onrosbagsfor working with rosbags. Hats off to the team atTernarisfor developing and maintaining it.LicenseThis project is licensed under aMITlicense
Package: rosbag-topic-remove
rosbag-topic-removeFilter out topics from a rosbagUse caseSay you have too much topics in a rosbag (ROS1 or ROS2) and that you want to keep a copy of this rosbag without data from a specific sensor.rosbag-topic-removewill :Filter out topics based on their nameFilter out topics based onglob-like wildcard patternsPreserve your original rosbagInstallationrosbag-topic-removecan be installed from PyPi :pip install rosbag-topic-removeUsagerosbag-topic-removecan be used both as a command line application and in Python code.Command lineA basic use ofrosbag-topic-removeis to simply call it from the command line.rosbag-topic-remove /path/to/rosbag -t /topic/to_deleterosbag-topic-remove /path/to/rosbag -t *sensor*Here are all the CLI options ofrosbag-topic-remove:$rosbag-topic-remove-husage: rosbag-topic-remove [-h] [-o OUTBAG] [-t TOPICS [TOPICS ...]] [-f]inbagpositional arguments:inbag                 Input bagoptions:-h, --help            show this help message and exit-o OUTBAG, --output OUTBAG, --outbag OUTBAGFiltered bag-t TOPICS [TOPICS ...], --topics TOPICS [TOPICS ...]Topics to remove from the rosbag-f, --force           Force output file overwritingPython Code APIYou can also callrosbag-topic-removedirectly into your Python code :fromrosbag_topic_removeimportBagTopicRemoverdata_path="path/to/a/rosbag.bag"# ROS1data_path="path/to/a/rosbag"# ROS2rbag_rem=BagTopicRemover(data_path)# Change the input bagrbag_rem.inbag="path/to/another/rosbag"# Remove /cmd_velrbag_rem.remove("/cmd_vel")# Remove /cmd_velrbag_rem.remove("/cmd_vel")# Remove all camera info topicsrbag_rem.remove("/*/camera_info")# Remove all topics from the IMU and from the GPSrbag_rem.remove(("/imu/*","/gps/*"))# Export a rosbag with all topics filteredrbag_rem.export("path/to/save/this/filtered/rosbag.bag")# ROS1rbag_rem.export("path/to/save/that/filtered/rosbag")# ROS2ContributingPull requests are welcome and don't hesitate to open issues(Recommended)flitis used to package this module. Development packages can be installed usingflit:python -m venv venvsource venv/bin/activatepip install flitflit install(Alternative) Development requirements can be installed using pip :python -m venv venvsource venv/bin/activatepip install -r requirements/requirements-dev.txtAcknowledgementsThis package relies strongly onrosbagsfor working with rosbags. Hats off to the team atTernarisfor developing and maintaining it.LicenseThis project is licensed under aMITlicense
Package: rosbag-update
Rosbag updateUpdates topic data types on ROS bags, solves checksum errors.
Doesn't need any migration file.RequirementsRequires the new ros message to be imported and following the structure of{package}/msg/{messagename}.msgfor example you should be able to import message in python withfrom mypackage.msg import MyMessageInstallationpip install rosbag-updateORpip3 install rosbag-updateRunrosbag_update -b [bag-path]NotesPlease ignore the error messageFailed to load Python extension for LZ4 support. LZ4 compression will not be available.
Package: rosbak
Mikrotik RouterOS backup toolInstalationpip3installrosbakWhat is rosbakrosbakis a Python command line tool which allows backup Mikrotik RouterOS
routers and switches.Keeping backup files inside RouterOS is usually unsafe, as when the equipment
fail, you have no access to them.rosbakperforms RouterOS backup and copies files to the specified location.RequirementsRouterOS >= 6.45, asrosbakuses scpRouterOS ssh service should be turned onYou should have an access to RouterOS hostUsagerosbak[options]<host>e.g.rosbak -d /backups router1ConfigurationYou may put configuration to/usr/local/etc/rosbak.ymlConfiguration contains global variabledirwhich points to default backup
location (you may use {host} param e.g. /backups/{host}, in this case backups
are stored e.g. to/backups/router1)Host sections in configuration file may contain router IP (addr), port,
backupdelay, etc.Configuration file is optional.Why backup delayRouterOS performs backups in background. Backup delay param is required to askrosbakwait the specified number of seconds before copying backup.ExportCommand line param-xorexport: truein host configuration tellsrosbakto perform configuration export as well (/export file=...)Configuration exports are useful when you need to restore backup partially,
manually copying settings one-by-one (e.g. when restoring it on the another
model).Copyright and warrantyrosbakis provided as-is under MIT license.rosbakis a 3rd party tool
and is not affiliated with SIA Mikrotīkls.
Package: ros-buildfarm
# ROS build farm based on DockerThis repository contains the scripts and templates to generate Jenkins jobs or
alternatively shell scripts to run jobs locally.
Please look in the [doc](doc/index.rst) folder for more information about how
to invoke the job generation and an explanation of the different job types.The ROS build farm is using [Docker](http://www.docker.com) for each step in
the process.
It is based on the ROS distro specification
[REP 143](http://www.ros.org/reps/rep-0143.html) and uses a separate repository
to configure the jobs being generated (e.g.
[ros-infrastructure/ros_buildfarm_config](https://github.com/ros-infrastructure/ros_buildfarm_config)).If you are going to use any of the provided infrastructure please consider
watching the [buildfarm Discourse category](https://discourse.ros.org/c/buildfarm)
in order to receive notifications e.g. about any upcoming changes.
Package: ros-code-modules
Thank you for installing the modules of ROS Code.
The installation addsthese(view unminified) files in a folder calledrosin your Pythonsite-packagesdirectory.
You can use any commands exposed in that directoryHere's an example:This is how you'dnormallycheck if a number is a prime one.
You'd have to create a new function and add a docstring so Python will recognize it when a user executes thepydoccommand.
Then you'll need to ask for the user's input and execute the command.defisprime(number):"""Check if a number is a prime numbernumber:The number to check"""ifnumber==1:returnFalseforiinrange(2,int(number**0.5)+1):ifnumber%i==0:returnFalsereturnTrueifisprime(input("Enter a number to check for prime: ")):print("It is prime!")else:print("It isn't prime!")WithROS Code, you can simplify this task:fromros.mainimportisprimeifisprime(input("Enter a number to check for prime: ")):print("It is prime!")else:print("It isn't prime!")You canfind more taskswhich you can simplify related to maths, strings and morehere.
Package: ros-configurator
ros-configuratorNB -> tested only on UbuntuThis package helps developers to configure their ROS environment.Install packageSimply run in your terminalpipinstallros-configuratorInstructionThis module provides a lot of shell commands, that guide you in the configuration of the ROS environment. Run one of the following commands in a terminal:ros_config_set_ip_localhost: this command setsROS_MASTER_URI=http://127.0.0.1:11311/andROS_HOSTNAME=127.0.0.1.ros_config_set_ip:you can use this command to set the ROS_MASTER_URI and ROS_HOSTNAME variables to the current machine IP in the local network.ros_config_set_ros_master_uri: this command asks you for an IP and sets the ROS_MASTER_URI variable to it.ros_config_list_source_files: this command shows a list of the bash files sourced in your ROS environment.ros_config_add_source_file: this command asks you a bash file path and adds it to the source files list. If the command is run in a ros workspace directory, you can type '.' and the corresponding bash file is automatically sourced.ros_config_remove_source_file: this command shows a list of the bash files sourced in your ROS environment and you can specify one to remove.NB -> after using a command, remember to restart the terminal or source .bashrc
Package: roscraco
roscraco (short for ROuter SCRAping and COntrol) is a library for
managing networking devices (routers).The targeted (and currently supported) devices are home routers.Settings are fetched and pushed from/to devices by using their
standard web-management interface (HTTP).The type of device being managed is abstracted away and is
only important initially (when the controller object is created).
From the developer’s standpoint, settings are then managed the same way
regardless of the device’s type.Installingroscraco is available onPyPIand can be installed usingpiporeasy_install:pip install roscracoor:easy_install roscracoroscraco aims to be compatible with python2 and python3. If you notice
any compatibility problems, please let us know.Supported devicesThe library supports the following devices:TP-LinkWR340G (until v3)WR340Gv4WR720NWR740NWR741NWR940NWR941NNetgearWGR614v7WGR614v8WGR614v9CanyonCNWF514CNPWF514N1CNPWF518N3ZyxelP320WP330WTendaW268RTomato (routers using Tomato firmware)version 1.23Supported featuresFetching router information (MAC address, uptime, DNS servers, traffic statistics, connected clients)Fetching DHCP server settingsFetching and updating DMZ settingsFetching and updating DHCP address reservation settingsFetching and updating Wireless connectivity settingsRebootingSome of the (usually more advanced) options of a given settings object
cannot be controlled.
For most of these options a “sane” value (usually default) is picked
and will potentially overwrite any custom values that are currently set.Usage exampleCreating a controller instance:import roscraco
controller = roscraco.create_controller(
    roscraco.ROUTER_TP_LINK, 'WR340G',
    'localhost', 8080, 'username', 'password'
)Print a lot of information about the device:roscraco.helper.print_info(controller)Change some Wireless settings:# Fetch the current wireless settings
settings = controller.get_wireless_settings()

# Switch to the next transmission channel
settings.set_channel(settings.channel + 1)

# Disable password authentication
settings.set_security_type(settings.SECURITY_TYPE_NONE)

# Change the SSID (network name)
settings.set_ssid('NewNetworkName')

# Send the new wireless settings to the router
controller.push_wireless_settings(settings)Be nice and log out of the device properly
(you can also usecontextlib.closing):controller.close()Linkssource
Package: roscreate-qt-pkg
===========Roscreate-Qt===========Provides scripts for generating (wizard-style) qt-based ros packagesfrom common templates. It caters for both traditional rosbuild andnewer catkin packages.Typical usage looks like this::roscreate-qt-pkg qfoo        # catkinized packageroscreate-qt-legacy-pkg qfoo # rosbuild packageNotes=========The packages generated include a master chooser, logging andsimple sigslot connections for interaction between the rosnode and the qt program.