Skip to content

Instantly share code, notes, and snippets.

View Sollimann's full-sized avatar
:electron:
Focusing

Kristoffer Solberg Rakstad Sollimann

:electron:
Focusing
View GitHub Profile
@MatsumotoJ
MatsumotoJ / multicam_bagfile_playback_example.cpp
Created June 4, 2018 07:37
Synchronized playback of rosbag files recorded with multiple cameras (https://github.com/IntelRealSense/librealsense/issues/1810)
#include <iostream>
#include <vector>
#include <librealsense2\rs.hpp>
// loadbagfile: load a bag file to a pipeline
void loadbagfile(rs2::pipeline & pipe, std::string filename)
{
rs2::config cfg;
cfg.enable_device_from_file(filename);
@PrashamTrivedi
PrashamTrivedi / DownloadRequest.kt
Last active May 28, 2024 10:50
Download File with progress indicator, written in Kotlin with Co-routines
suspend fun downloadFile(url: String,
downloadFile: File,
downloadProgressFun: (bytesRead: Long, contentLength: Long, isDone: Boolean) -> Unit) {
async(CommonPool) {
val request = with(Request.Builder()) {
url(url)
}.build()
val client = with(OkHttpClient.Builder()) {
addNetworkInterceptor { chain ->

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@ClintLiddick
ClintLiddick / rust-robotics-libraries.md
Last active July 26, 2024 13:41
Rust Libraries for Robotics

Motivation

tl;dr I want to use Rust to program robots. Help me find the best core libraries to build on.

Robotic systems require high performance and reliability, but also have enormous complexity in terms of algorithms employed, number of subsystems, embedded hardware control, and other metrics. Development is mostly split between C++ for performance and safety critical components, and MatLab or Python for quick research or task iteration.