Giter Site home page Giter Site logo

useful-ros-scripts's Introduction

Useful ROS Scripts

This repository consists of a collection of automation scripts that I find useful when working with ROS projects. All of these scripts have been tested with ROS Kinetic on Ubuntu 16.04.

Contained within this repo are the following scripts:

Bag2Vid

This script will take a RosBag file that contains sensor_msgs/Image messages and convert them to a .mpg video file format. In addition, it can also be used to extract the frames to separate .jpg images. The script takes the following paramters:

Required

  • -t the topic name from which the image bag was created.

Optional

  • -p Change the temporary file directory name. The script will first extract all of the images to this path, then combine them together into a video. If not set, this defaults to "tmp".
  • -o Change the output file name. If not set, then this defaults to "output.mpg"
  • -s Save the temporary directory with the images. If this flag is not passed, then the script will delete the temporary directory with the extracted images.
  • -f the number of frames per second for which the video was recorded. If not set, this defaults to 30.
  • -n Do not create the video. If passed, then the video will not be created from the images. This is useful with the -s flag to extract the images. If not set, then the video will be created.

Sample usage: $./Bag2Vid Images.bag -f 30

Dependencies:

  • rosbag. This is included with the ros-desktop-full package
  • ros imageview. This is included with the ros-desktop-full package
  • mencoder. This can be installed on ubuntu with $sudo apt-get install mencoder
  • bc This is a standard linux utility. If it's not installed, it can be installed with sudo apt-get install bc

useful-ros-scripts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.