Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixelators4014/offseason-turret
https://github.com/pixelators4014/offseason-turret
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pixelators4014/offseason-turret
- Owner: Pixelators4014
- Created: 2024-02-24T21:17:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-24T21:17:35.000Z (11 months ago)
- Last Synced: 2024-03-07T10:59:49.484Z (10 months ago)
- Language: C++
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Layout
All of the code is in [newton.cpp](newton.cpp). [run.sh](run.sh) is a convenience program for CMake to compile and run the code ( it works on my machine ), [CMakeLists.txt](CMakeLists.txt), [.gitmodules](.gitmodules), and [.gitignore](.gitignore) are config files, and [autodiff](autodiff) and [eigen](eigen) are header only dependencies packaged as a git submodule.
# Running code
Currently, I have only tested it on linux, so I am not sure how it will work for windows.
## Install dependencies
Clone the repo with `--recursive` so that you get the autodiff dependency.
Install [CMake](https://cmake.org/) and [Ninja](https://ninja-build.org/)
## Compile and run the code
```bash
./run.sh
```### If the run script is not working
This script assumes that you have a POSIX compliant shell, like bash, and the linux version of CMake ( I am not sure if the syntax is any different on other platforms ). If you need to dig into the weeds a bit more to compile the project, all CMake is currently doing is compiling [newton.cpp](newton.cpp) and adding autodiff and eigen as include directories. This should be possible to do with just a few flags with any c++ compiler.