Giter VIP home page Giter VIP logo

dcsl-ddc's Introduction

Dynamic Drift Control

scripts/optimize_tire_model.py finds the optimal parameters for the Pacejka model to minimize error against experimental data.

Model Validation

The validate_model.py script plots the trajectory from a given log against the trajectory predicted by the optimized dynamics model.

  • The script takes in the filepath of the ROS bag to run as a command line argument.
  • The predicted trajectory (green) is plotted if the -p flag is specified. It is not plotted by default.
  • Plots of the heading, yaw rate, and velocity are shown prior to the simulation if the -s flag is specified.

Steps to run validate_model.py

Note: These steps assume that ROS 2 is installed.

  1. Since the script loads a ROS bag that depends on custom message types (AckermannDriveStamped, ViconObject), the script must be run within a ROS workspace with the packages that define these types. First, create a ROS workspace by running mkdir -p ros_ws/src.
  2. Navigate to ros_ws/src and clone this repository. Then
    • Clone the ackermann_msgs repo by running git clone -b ros2 https://github.com/ros-drivers/ackermann_msgs.git
    • Clone the vicon_ros repo by running git clone https://github.com/yambati03/vicon_ros.git
  3. Build the workspace by running colcon build --symlink-install in the top-level ros_ws directory. Then, source the install directory by running . install/setup.bash
  4. Then, navigate to dcsl-ddc/scripts. The validate_model.py script can be run using the following command.
python3 validate_model.py /path/to/bag.db3 -p -s

dcsl-ddc's People

Contributors

yambati03 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.