Giter Site home page Giter Site logo

tinker-twins / f1tenth-mocap-data-recording-pipeline Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 606.37 MB

F1TENTH Motion Capture Data Recording Pipeline

CMake 7.18% C++ 78.35% Python 12.26% Makefile 0.35% C 0.93% MATLAB 0.93%
f1tenth mocap motion-capture optitrack ros matlab data-recording dataset

f1tenth-mocap-data-recording-pipeline's Introduction

F1TENTH Mocap Data Recording Pipeline

F1TENTH within OptiTrack Motion Capture Area F1TENTH with 4 X-Base Passive Reflective Markers
OptiTrack Mo-Cap Ground Plane Setup OptiTrack Mo-Cap Asset (Vehicle) Setup
OptiTrack Mo-Cap System Setup, Calibration and ROS Integration Tutorial Video

SETUP (Vehicle On-Board Computer)

  1. Clone this repository.
    $ git clone https://github.com/Tinker-Twins/F1TENTH-Mocap-Data-Recording-Pipeline.git
  2. Move the autodrive and f1tenth directories from the Vehicle Software directory to the source space (src) of the Catkin workspace on the vehicle computer.
    $ mv ~/Vehicle\ Software/autodrive ~/catkin_ws/src/
    $ mv ~/Vehicle\ Software/f1tenth ~/catkin_ws/src/
  3. Build the packages.
    $ cd ~/catkin_ws
    $ catkin_make
  4. Source the setup.bash and/or .bashrc as needed.
    $ source ~/catkin_ws/devel/setup.bash
    $ source ~/.bashrc

SETUP (Remote PC Connected to OptiTrack Mocap System)

  1. Install mocap_optitrack ROS package:

    $ sudo apt-get install ros-<distro>-mocap-optitrack

    References:
    http://wiki.ros.org/mocap_optitrack
    https://tuw-cpsg.github.io/tutorials/optitrack-and-ros/

  2. Source the setup.bash and/or .bashrc as needed.

    $ source /opt/ros/<distro>/setup.bash
    $ source ~/.bashrc

    Note: There may be a need to clone and build vehicle packages on the remote PC connected to OptiTrack Mocap system as well, so that any custom message definitions are compiled and recorded to the bag file.

USAGE

  • [Terminal Window 1] Mocap Bringup: Launch the mocap.launch file from mocap_optitrack package on remote PC.

    $ roslaunch mocap_optitrack mocap.launch & rosrun rviz rviz

    Note: F1TENTH_Mocap.rviz configuration file could be used for convenient visualization of vehicle pose w.r.t. world frame.

  • [Terminal Window 2] Open-Loop Control: Launch the open_loop_ctrl_autodrive.launch file from racecar package on vehicle computer (SSH into vehicle computer). Pass commandline arguments as applicable to the open-loop control test/scheme.

    $ ssh [email protected]
    $ roslaunch racecar open_loop_ctrl_autodrive.launch velocity:=<velocity> steering:=<steering> velocity_noise:=<velocity_noise> steering_noise:=<steering_noise>
  • [Terminal Window 3] Data Recording: Record contents of all topics to a bag file with a custom name.

    • Command line option:
    $ cd <path/to/directory/to/save/bag/file(s)>
    $ rosbag record -a -O <bag_file_name>.bag
    • Launch file option (supports topic throttling):
    $ roslaunch racecar mocap_data_recording.launch rosbag_dir:=<path/to/directory/to/save/bag/file> rosbag_name:=<bag_file_name>.bag

f1tenth-mocap-data-recording-pipeline's People

Contributors

tinker-twins avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

armlabcuicar

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.