Repo symbol

anycar repository

Repo symbol

anycar repository

Repo symbol

anycar repository

Repo symbol

anycar repository

Repo symbol

anycar repository

car_ros2

Repository Summary

Description Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility"
Checkout URI https://github.com/lecar-lab/anycar.git
VCS Type git
VCS Version main
Last Updated 2024-10-28
Dev Status UNKNOWN
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
car_ros2 0.0.0

README

AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility

[[Website]](https://lecar-lab.github.io/anycar/) [[Arxiv]](https://arxiv.org/abs/2409.15783) [[Video]](https://www.youtube.com/) [](https://github.com/google/jax) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Environment Setup

[!IMPORTANT] We recommend Ubuntu >= 22.04 + Python >= 3.10 + CUDA >= 12.3. You can create a mamba (or conda) environment before proceeding.

  1. Install ROS2 Humble on your machine
  2. Clone this repo and cd to the folder
    git clone git@github.com:LeCAR-Lab/anycar.git
    cd anycar
3. Create a new mamba environment and activate it

    
```bash
    mamba create -n anycar python=3.10
    mamba activate anycar
    
  1. Install python dependencies
    pip install -r requirements.txt
    
  1. Add the path of this project folder to your environment path CAR_PATH
    export CAR_PATH=$(pwd)
    
  1. Add Python Path and Interpreter for ROS2 Compatibility

    • get python path: which python
    • get python path to packages: python -c "import site; print(site.getsitepackages()[0])"
    export PYTHON_EXECUTABLE=PATH-OF-PYTHON
    export PYTHONPATH=PATH-OF-PYTHON-SITE-PACKAGES:$PYTHONPATH
    
  1. Build the project
    colcon build
    
  1. Source the environment
    source install/setup.bash 
    
  1. Download Foxglove Studio and import the visualization config from misc/anycar-vis.json

Quick Start

  1. run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml

  1. run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py

  1. Check the visualization in Foxglove Studio localhost:8765

Expected to see:

For this example environment, we provide an example checkpoint. Please put folder under car_foundation/car_foundation/models/.

AnyCar Pipeline

File truncated at 100 lines see the full file

Repo symbol

anycar repository

Repo symbol

anycar repository

Repo symbol

anycar repository

Repo symbol

anycar repository