git clone https://github.com/stulp/dmpbbo.git
cd dmpbbo
./install_dependencies.sh
make build
cd ..
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
import numpy as np | |
def box_surface_grid(size, n_steps): | |
size = np.asarray(size) | |
half_size = 0.5 * size | |
# +-------+ | |
# | | | |
# +---+-------+---+-------+ - |
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
import numpy as np | |
def concat_dependent_uncertain_transforms( | |
mean_A2B, cov_A2B, mean_B2C, cov_B2C, cov_A2B_B2C): | |
"""Concatenate two dependent uncertain transformations. | |
This is an approximation up to 2nd-order terms that takes into account | |
the covariance between the two distributions. |
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
""" | |
Plot heart rate statistics per day from exported Garmin data. | |
""" | |
import glob | |
import time | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns | |
from fitparse import FitFile |
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.
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
import numpy as np | |
from pytransform import rotations as pr | |
from pytransform import plot_utils as pp | |
import matplotlib.pyplot as plt | |
plt.figure(frameon=False) | |
ax = pp.make_3d_axis(1) | |
ax.grid(False) | |
ax.set_xticks([]) |
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
import msgpack | |
def summarize_logfile(filename): | |
n_samples = {} | |
typenames = {} | |
with open(filename, "r") as f: | |
unpacker = msgpack.Unpacker(file_like=f) | |
n_keys = unpacker.read_map_header() | |
stream_names = [] |
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
#ifndef GENERATED_ASN1SCC_LASERSCAN_H | |
#define GENERATED_ASN1SCC_LASERSCAN_H | |
/* | |
Code automatically generated by asn1scc tool | |
*/ | |
#include "taste-types.h" | |
#include "Time.h" | |
#include "taste-extended.h" | |
#include "asn1crt.h" |
NewerOlder