The form of the message is:
["node_name", {"robot_name": [[x , y, z], [roll, pitch, yaw]]}]\n
(rotation order is 'XYZ' see doc)
using telnet
import os | |
from math import sin, cos | |
import bpy | |
from mathutils import Matrix | |
def matrix(yaw, pitch, roll, x, y, z): | |
# from pom-genom/libeuler/pomEuler.c:287 (pomWriteSensorPos) | |
# euler.{yaw,pitch,roll,x,y,z} | |
ca, sa = cos(yaw), sin(yaw) | |
cb, sb = cos(pitch), sin(pitch) |
#! /bin/bash | |
converter=~/velodyne-tools/build/convert | |
workspace=$(pwd) | |
for folder in m*; do | |
cd $workspace | |
mkdir ${folder}-pcd | |
cd $folder | |
for file in velodyneShot.pos.*; do | |
inc=${file#velodyneShot.pos.} | |
$converter velodyneShot.$inc velodyneShot.pos.$inc ../${folder}-pcd/shot.0${inc}.pcd |
The form of the message is:
["node_name", {"robot_name": [[x , y, z], [roll, pitch, yaw]]}]\n
(rotation order is 'XYZ' see doc)
using telnet
#! /usr/bin/env python | |
import os | |
import glob | |
import atlaas | |
from atlaas.helpers.gdal2 import gdal2 | |
from atlaas.helpers.image import zero | |
if not glob.glob("atlaas.*x*.tif"): | |
test = atlaas.Atlaas() | |
test.init(120.0, 120.0, 0.1, 377016.5, 4824342.9, 141.0, 31, True) |
#! /usr/bin/env python | |
import cv2 | |
class TrackbarData: | |
def __init__(self, name='Trackbar', window='Window', value=0, count=100): | |
self.value = value | |
cv2.createTrackbar(name, window, value, count, self.update) | |
def update(self, value): | |
self.value = value |