Skip to content

Dockerized Research Repository for Data Driven Model Experimentation

Notifications You must be signed in to change notification settings

WATonomous/data-driven-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Data Driven Model

Training the model

  • Setup the db with the Drone Simuation Setup

  • Setup ml-casadi repository

  • Setup acados on Linux locally

  • set export PYTHONPATH="/home/{username}/neural-mpc/ml-casadi:/home/{username}/neural-mpc/ros_dd_mpc"

  • set export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/acados/lib && export ACADOS_SOURCE_DIR=~/acados

  • python src/model_fitting/train.py --csv data/simplified_sim_dataset/train/dataset_001.csv

  • python src/experiments/eval.py

ROS Environment (WIP)

  1. Build and start the Docker container:
./run.sh build
./run.sh up
  1. Connect Foxglove Studio:
  • Open Foxglove Studio
  • Click "Open Connection"
  • Select "WebSocket"
  • Enter URL: ws://localhost:8765
  • Click "Open"
  1. Add visualization panels in Foxglove:
  • Click "+" to add a new panel
  • Add "3D" panel to see the car moving
  • Add "Plot" panel to see velocities
  • Select topics:
    • /car/odom for car position
    • /car/reference_path for the circular path
    • /car/cmd_vel for velocity commands

Stopping the Simulation

./run.sh down

If there is an error on build, prune the docker system.

docker system prune -f

About

Dockerized Research Repository for Data Driven Model Experimentation

Resources

Stars

Watchers

Forks