-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from matiasvc/develop
Develop
- Loading branch information
Showing
35 changed files
with
1,219 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[submodule "Catch2"] | ||
path = test/Catch2 | ||
path = test/unit-tests/Catch2 | ||
url = [email protected]:catchorg/Catch2.git | ||
branch = v2.x | ||
[submodule "imgui"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
add_subdirectory(Image2D-Example) | ||
add_subdirectory(Inputs-Example) | ||
add_subdirectory(Primitives3D-Example) | ||
add_subdirectory(RGBD-Example) | ||
add_subdirectory(SimpleLinePlot-Example) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(inputs-example) | ||
|
||
add_executable( | ||
inputs-example | ||
main.cpp | ||
) | ||
|
||
set_target_properties( | ||
inputs-example PROPERTIES | ||
CXX_STANDARD 17 | ||
CXX_STANDARD_REQUIRED ON | ||
) | ||
|
||
# This if check is used to work better with a local copy of Toucan. | ||
# In a regular project the 'if' can be omitted, as the 'find_package' command should always be called. | ||
if (NOT Toucan_FOUND) | ||
find_package(Toucan REQUIRED) | ||
endif (NOT Toucan_FOUND) | ||
|
||
target_link_libraries( | ||
inputs-example | ||
PRIVATE Toucan::Toucan | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#include <Toucan/Toucan.h> | ||
|
||
#include <chrono> | ||
#include <thread> | ||
|
||
int main() { | ||
|
||
Toucan::Initialize(); | ||
|
||
bool checkbox_value = true; | ||
|
||
float slider_float_value = 0.0; | ||
Toucan::Vector2f slider_float2_value = Toucan::Vector2f::Zero(); | ||
Toucan::Vector3f slider_float3_value = Toucan::Vector3f::Zero(); | ||
Toucan::Vector4f slider_float4_value = Toucan::Vector4f::Zero(); | ||
|
||
int slider_int_value = 0; | ||
Toucan::Vector2i slider_int2_value = Toucan::Vector2i::Zero(); | ||
Toucan::Vector3i slider_int3_value = Toucan::Vector3i::Zero(); | ||
Toucan::Vector4i slider_int4_value = Toucan::Vector4i::Zero(); | ||
|
||
Toucan::Color color_value = Toucan::Color::White(); | ||
|
||
while (Toucan::IsWindowOpen()) { | ||
Toucan::BeginInputWindow("Inputs"); | ||
{ | ||
if (Toucan::ShowButton("Button")) { | ||
std::cout << "Button clicked\n"; | ||
} | ||
|
||
if (Toucan::ShowCheckbox("Checkbox", checkbox_value)) { | ||
std::cout << "Checkbox value changed to:\n" << checkbox_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderFloat("Slider float", slider_float_value)) { | ||
std::cout << "Slider float value changed to:\n" << slider_float_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderFloat2("Slider float 2", slider_float2_value)) { | ||
std::cout << "Slider float 2 value changed to:\n" << slider_float2_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderFloat3("Slider float 3", slider_float3_value)) { | ||
std::cout << "Slider float 3 value changed to:\n" << slider_float3_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderFloat4("Slider float 4", slider_float4_value)) { | ||
std::cout << "Slider float 4 value changed to:\n" << slider_float4_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderInt("Slider int", slider_int_value)) { | ||
std::cout << "Slider int value changed to:\n" << slider_int_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderInt2("Slider int 2", slider_int2_value)) { | ||
std::cout << "Slider int 2 value changed to:\n" << slider_int2_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderInt3("Slider int 3", slider_int3_value)) { | ||
std::cout << "Slider int 3 value changed to:\n" << slider_int3_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowSliderInt4("Slider int 4", slider_int4_value)) { | ||
std::cout << "Slider int 4 value changed to:\n" << slider_int4_value << '\n'; | ||
} | ||
|
||
if (Toucan::ShowColorPicker("Color picker", color_value)) { | ||
std::cout << "Color picker value changed to:\n (" << | ||
color_value.r << ", " << color_value.g << ", " << color_value.b << ")\n"; | ||
} | ||
} | ||
Toucan::EndInputWindow(); | ||
|
||
using namespace std::chrono_literals; | ||
std::this_thread::sleep_for(250ms); | ||
} | ||
|
||
Toucan::Destroy(); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(rgbd-example) | ||
|
||
add_executable( | ||
rgbd-example | ||
main.cpp | ||
DataLoader.cpp | ||
DataLoader.cpp DataLoader.h | ||
stb_image.h | ||
) | ||
|
||
set_target_properties( | ||
rgbd-example PROPERTIES | ||
CXX_STANDARD 17 | ||
CXX_EXTENSIONS ON | ||
CXX_STANDARD_REQUIRED ON | ||
POSITION_INDEPENDENT_CODE ON | ||
) | ||
|
||
add_library(stb STATIC stb/stb_image.c) | ||
target_include_directories(rgbd-example PRIVATE stb) | ||
|
||
find_package(Eigen3 REQUIRED NO_MODULE) | ||
|
||
find_package(Sophus REQUIRED) | ||
target_include_directories(rgbd-example PRIVATE ${Sophus_INCLUDE_DIRS}) | ||
# This if check is used to work better with a local copy of Toucan. | ||
# In a regular project the 'if' can be omitted, as the 'find_package' command should always be called. | ||
if (NOT Toucan_FOUND) | ||
find_package(Toucan REQUIRED) | ||
endif (NOT Toucan_FOUND) | ||
|
||
target_link_libraries( | ||
rgbd-example | ||
PRIVATE Toucan::Toucan stb stdc++fs Eigen3::Eigen | ||
PRIVATE Toucan::Toucan stdc++fs | ||
) | ||
|
||
file(COPY dataset DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$( dirname "${BASH_SOURCE[0]}" )" || exit | ||
|
||
wget https://vision.in.tum.de/rgbd/dataset/freiburg3/rgbd_dataset_freiburg3_long_office_household.tgz -O - | tar xvzf - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.