The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
#include "md5.h" | |
const uint32_t r[] = {7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, | |
5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, | |
4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, | |
6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21}; | |
const uint32_t k[] = { | |
0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, | |
0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501, |
#include "lib_math_vectors.h" | |
// Simplifies math power function | |
double pow2(double x) { return pow(x, 2); } | |
// Sigmoidal function | |
double sigmoid(double x) { return 1.0 / (1.0 + exp(-x)); } | |
// ReLU function | |
double relu(double x) { return fmax(0.0, x); } |
#include <stdio.h> | |
#include <stdint.h> | |
float pwr2(float x) | |
{ | |
return x * x; | |
} | |
float inv_sqrt(float number) | |
{ |
def flatten(*parents, dtype=tuple): | |
# internally, lists are used because they can be easily merged and expanded | |
result = list() | |
for i in range(len(parents)): | |
try: | |
# if i-th element iterable, use recursion to flatten all its elements and merge the result with current return list | |
result.extend(flatten(*parents[i], dtype=list)) | |
except TypeError: | |
# if not iterable, add the element to return list | |
result.append(parents[i]) |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/init.h> | |
#include <linux/interrupt.h> | |
#include <linux/sched.h> | |
#include <linux/platform_device.h> | |
#include <linux/io.h> | |
#include <linux/of.h> | |
#include <linux/init.h> | |
#include <linux/device.h> |
The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
This is a short tutorial on building ROS Noetic in the Debian 12 ("bookworm") fresh-install environment. There are several packages not available (yet) from the official apt repositories, which have to be either built from source or installed from older Debian 11 ("bullseye") repository DEB packages. Several packages also have to be downgraded to maintain compatibility.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu buster main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Sep 23 14:04:42 2023 | |
@author: Vojtech Vrba ([email protected]) | |
Simple Python script which gathers all available Bitstamp OHLC data for selected trading pair and interval. | |
The data is stored in a new CSV file / only new data is appended to the end of an existing CSV file. | |
""" | |
import datetime as dt |
from pathlib import Path | |
from rosbags.highlevel import AnyReader | |
from contextlib import nullcontext | |
from tqdm import tqdm | |
# aux function to get a list of all rosbag topic names | |
def rosbag_topics(bag_path): | |
with AnyReader([Path(bag_path)]) as reader: | |
return reader.topics |
import signal | |
if __name__ == "__main__": | |
terminated = False | |
signal.signal(signal.SIGINT, lambda sig, frame: globals().update(terminated=True)) | |
while not terminated: | |
# do something ... | |