Get informations about a mcap
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
// Copyright 2021 ros2_control Development Team | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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
#!/usr/bin/env python3 | |
import argparse | |
from collections import OrderedDict | |
from pathlib import Path | |
from typing import Dict, Tuple, Union | |
import pandas as pd | |
from mcap.reader import McapReader, make_reader | |
from mcap.records import Channel, Statistics | |
from mcap.summary import Summary |
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
from os import path | |
class FilePath: | |
def __init__(self, complete_path): | |
self.folder, self.filename = path.split(complete_path) | |
self.filestem, self.ext = path.splitext(self.filename) | |
self.path = complete_path | |
self.csv_type = self.filestem.rsplit("_", 1)[-1] | |
def __repr__(self): |
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
// ~/.jupyter/custom/custom.js | |
/** | |
* | |
* Duplicate a current line in the Jupyter Notebook | |
* Used only CodeMirror API - https://codemirror.net | |
* | |
**/ | |
CodeMirror.keyMap.pcDefault["Ctrl-D"] = function(cm){ | |
// get a position of a current cursor in a current cell |
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 pafy | |
import vlc | |
import time | |
from enum import IntEnum, auto | |
import logging | |
logging.basicConfig( | |
level=logging.DEBUG, format="[%(levelname)s]: %(asctime)s:%(module)s:%(message)s" | |
) |
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
% !TEX program = pdflatex | |
% !TEX options = --shell-escape -synctex=1 -interaction=nonstopmode -file-line-error "%DOC%" | |
\documentclass[preview]{standalone} | |
% Block diagrams & Flowcharts | |
% ======================================== | |
\usepackage{tikz} |
NewerOlder