Giter Club home page Giter Club logo

duckietown_bagprocesser's Introduction

Bag Pzrocesser

Execution

1.Build image

Run command

dts devel build -f

2.Run container with mounted volume

Run command

docker run -it -v <path_to_bagfile>:/data/ duckietown/duckietown_bagprocesser:v2-amd64

Replace <path_to_bagfile> with the absolute directory to where the bagfile you want to process is stored. The new bagfile named "processed_bag.bag" will be stored at the same folder.

3.Play the processed bagfile on duckiebot

Build communication between your PC and duckiebot using ROS

Run command

docker run -it --net host -e ROS_MASTER_URI=http://<host_ip>:11311/ -e ROS_IP=<duckiebot_ip> -v <path_to_bagfile>:/home duckietown/dt-ros-commons:daffy-amd64 /bin/bash

Replace <host_ip> and <duckiebot_ip> with the IP address of your PC and your duckiebot. You can check the IP address with command ifconfig. The <path_to_bagfile> should be replaced with the same directory you used to mount and store the bagfiles.

Play bagfile

Move to the container directory that you mounted the volume, with command cd /home in this case.

Run command

rosbag play processed_bag.bag --loop /<MY_ROBOT>/camera_node/image/compressed:=/new_image/compressed

Replace <MY_ROBOT> with the name of your duckiebot.

duckietown_bagprocesser's People

Contributors

ysli16 avatar

Watchers

 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.