Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New exercise] 3D Visual Odometry exercise #2298

Open
wants to merge 4 commits into
base: old_manager
Choose a base branch
from
Open
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions exercises/static/exercises/visual_odometry_3D/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Exercise Documentation Website](https://jderobot.github.io/RoboticsAcademy/exercises/ComputerVision/visual_odometry_3D)
7 changes: 7 additions & 0 deletions exercises/static/exercises/visual_odometry_3D/code/academy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from GUI import GUI
from HAL import HAL
# Enter sequential code!

while True:
# Enter iterative code!

18 changes: 18 additions & 0 deletions exercises/static/exercises/visual_odometry_3D/console.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Functions to start and close console
import os
import sys

def start_console():
# Get all the file descriptors and choose the latest one
fds = os.listdir("/dev/pts/")
fds.sort()
console_fd = fds[-2]

sys.stderr = open('/dev/pts/' + console_fd, 'w')
sys.stdout = open('/dev/pts/' + console_fd, 'w')
sys.stdin = open('/dev/pts/' + console_fd, 'w')

def close_console():
sys.stderr.close()
sys.stdout.close()
sys.stdin.close()
Loading