Skip to content

Instantly share code, notes, and snippets.

import torch
import numpy as np
#from FastGeodis import generalised_geodesic3d
from scipy.ndimage.morphology import distance_transform_edt as distance_transform_edt_scipy
from scipy.ndimage.morphology import distance_transform_cdt as distance_transform_cdt_scipy
import cupy as cp
from cucim.core.operations.morphology import distance_transform_edt as distance_transform_edt_cupy
@matt3o
matt3o / rqt_smach_kinetic.md
Last active February 13, 2020 02:14
Running rqt_smach (smach_viewer) with ROS Kinetic

Running rqt_smach (smach_viewer) with ROS Kinetic

Hello everyone!

As we needed Smach for an university project I decided to take a look in porting rqt_smach / smach_viewer to ROS Kinetic. Some things may still be broken but at least it is working at all!

NOTE: This is kind of work in progress - I'd love to get any feedback and will merge updates if you want to contribute any fixes! I will try to get into contact with jbohren but for the most recent issues and pull requests he was not willing to cooperate - that's surely one of the reasons why there is no kinetic support so far

This file is based on the instructions made by @jbohren in this file: rqt_smach.md - which is hard to find on the internet.

openssl req -x509 -sha256 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 1000 -nodes -subj "/C=DE/ST=None/L=None/O=None/OU=Org/CN=127.0.0.1"
"msg": "ERROR! SSH encountered an unknown error. The output was:\nOpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips 1 Mar 2016\r\ndebug1: Reading configuration data /home/matteo/.ssh/config\r\ndebug1: /home/matteo/.ssh/config line 5: Applying options for *\r\ndebug1: /home/matteo/.ssh/config line 7: Applying options for *.strato.de\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/home/matteo/.ansible/cp/ansible-ssh-ssh.strato.de-22-matteo\" does not exist\r\ndebug2: resolving \"ssh.strato.de\" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to ssh.strato.de [2a01:238:20a:202:13f0::1] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9950 ms remain after connect\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/matteo/
sudo ddrescue -d -r3 disk(/dev/..) folder logfile
sudo ddrescue --force --retrim -d -r5 disk(/dev/..) folder logfile
sudo ddrescue -A -d -r 5 disk(/dev/..) folder logfile
sudo ddrescue -n disk(/dev/..) folder logfile
sudo ddrescue -d --force -R -r2 disk(/dev/..) folder logfile
sudo ddrescue -v -i 12350000 disk(/dev/..) folder logfile
sudo ddrescue -i 0 -v -f -r2 disk(/dev/..) folder logfile
sudo ddrescue -d -r3 -M -f disk(/dev/..) folder logfile