Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Add rect2d library #12

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM robocin/cpp-ubuntu-latest:latest
FROM robocin/cpp-ubuntu-latest:latest
152 changes: 76 additions & 76 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "C++",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
"-e",
"DISPLAY=${env:DISPLAY}",
"--network=host"
],
"customizations": {
"vscode": {
"extensions": [
// C/C++ Extension Pack
"ms-vscode.cpptools-extension-pack",
// clangd
"llvm-vs-code-extensions.vscode-clangd",
// GitLens - Git supercharged
"eamodio.gitlens",
// GitHub Copilot
"GitHub.copilot",
// Code Spell Checker
"streetsidesoftware.code-spell-checker",
// YAML
"redhat.vscode-yaml",
// Protobuf Language Support
"zxh404.vscode-proto3",
// Python
"ms-python.python"
],
"settings": {
// C++ Settings
"[cpp]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
},
// C/C++ Settings
"C_Cpp.intelliSenseEngine": "disabled", // disabling IntelliSense Engine to use clangd
// clangd Settings
"clangd.path": "/usr/bin/clangd",
// CMake Settings
"cmake.buildDirectory": "${workspaceFolder}/build",
"cmake.cmakePath": "/usr/bin/cmake",
"cmake.generator": "Ninja",
// Code Spell Checker Settings
"cSpell.language": "en, pt-BR",
"cSpell.words": [
"robocin",
"RoboCIn",
"RobôCIn"
],
// Editor Settings
"editor.detectIndentation": true,
// Files Settings
"files.insertFinalNewline": true,
// JSON Settings
"[json]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "vscode.json-language-features"
},
// YAML Settings
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "redhat.vscode-yaml"
}
}
}
}
}
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "C++",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
"-e",
"DISPLAY=${env:DISPLAY}",
"--network=host"
],
"customizations": {
"vscode": {
"extensions": [
// C/C++ Extension Pack
"ms-vscode.cpptools-extension-pack",
// clangd
"llvm-vs-code-extensions.vscode-clangd",
// GitLens - Git supercharged
"eamodio.gitlens",
// GitHub Copilot
"GitHub.copilot",
// Code Spell Checker
"streetsidesoftware.code-spell-checker",
// YAML
"redhat.vscode-yaml",
// Protobuf Language Support
"zxh404.vscode-proto3",
// Python
"ms-python.python"
],
"settings": {
// C++ Settings
"[cpp]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
},
// C/C++ Settings
"C_Cpp.intelliSenseEngine": "disabled", // disabling IntelliSense Engine to use clangd
// clangd Settings
"clangd.path": "/usr/bin/clangd",
// CMake Settings
"cmake.buildDirectory": "${workspaceFolder}/build",
"cmake.cmakePath": "/usr/bin/cmake",
"cmake.generator": "Ninja",
// Code Spell Checker Settings
"cSpell.language": "en, pt-BR",
"cSpell.words": [
"robocin",
"RoboCIn",
"RobôCIn"
],
// Editor Settings
"editor.detectIndentation": true,
// Files Settings
"files.insertFinalNewline": true,
// JSON Settings
"[json]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "vscode.json-language-features"
},
// YAML Settings
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "redhat.vscode-yaml"
}
}
}
}
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.associations": {
"xtr1common": "cpp",
"limits": "cpp"
}
}
99 changes: 50 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
# [wip] robocin-cpp

The repository provides the core library for our team's robotics applications.

## Table of Contents

- [About](#about)
- [Quickstart](#quickstart)
- [Building](#build)
- [Codemap](#codemap)
- [Contributing](#contributing)
- [License](#license)

<a name="about"></a>

## About

In progress...

<a name="quickstart"></a>

## Quickstart

In progress...

<a name="build"></a>

## Building

[CMake](https://cmake.org/) is the official build system of the `robocin-cpp` project.

<a name="codemap"></a>

## Codemap

- [`utility`](robocin/utility): a collection of utility and helper code.

<a name="contributing"></a>

## Contributing

We welcome contributions to the `robocin-cpp` library. If you would like to contribute, please feel free to open issues
or send an email to [[email protected]](mailto:[email protected]).

<a name="license"></a>

## License

This project is licensed under the MIT License - see the LICENSE file for details.
# [wip] robocin-cpp

The repository provides the core library for our team's robotics applications.

## Table of Contents

- [About](#about)
- [Quickstart](#quickstart)
- [Building](#build)
- [Codemap](#codemap)
- [Contributing](#contributing)
- [License](#license)

<a name="about"></a>

## About

In progress...

<a name="quickstart"></a>

## Quickstart

In progress...

<a name="build"></a>

## Building

[CMake](https://cmake.org/) is the official build system of the `robocin-cpp` project.

<a name="codemap"></a>

## Codemap

- [`geometry`](robocin/geometry): a collection of geometric classes;
- [`utility`](robocin/utility): a collection of utility and helper code;

<a name="contributing"></a>

## Contributing

We welcome contributions to the `robocin-cpp` library. If you would like to contribute, please feel free to open issues
or send an email to [[email protected]](mailto:[email protected]).

<a name="license"></a>

## License

This project is licensed under the MIT License - see the LICENSE file for details.
3 changes: 2 additions & 1 deletion robocin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
add_subdirectory(utility)
add_subdirectory(utility)
add_subdirectory(geometry)
27 changes: 27 additions & 0 deletions robocin/geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
robocin_cpp_library(
NAME point2d
HDRS point2d.h
SRCS point2d.cpp
)

robocin_cpp_test(
NAME point2d_test
HDRS ../utility/internal/test/epsilon_injector.h
SRCS point2d_test.cpp
DEPS point2d
)


robocin_cpp_library(
NAME rect2d
HDRS rect2d.h
SRCS rect2d.cpp
)


robocin_cpp_test(
NAME rect2d_test
HDRS ../utility/internal/test/epsilon_injector.h
SRCS rect2d_test.cpp
DEPS rect2d
)
Loading