roslaunch test_connection3.launch
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
(defun open-with-shiba () | |
"open a current markdown file with shiba" | |
(interactive) | |
(start-process "shiba" "*shiba*" "zsh" "-ic" (format "shiba --detach %s" buffer-file-name)) | |
) | |
(define-key markdown-mode-map (kbd "C-c C-c") 'open-with-shiba) |
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
(make-irtviewer :draw-origin nil) | |
(setq *a* (make-cube 240 150 2)) | |
(setf (get *a* :face-color) :yellow) | |
(send *irtviewer* :change-background (gl::find-color :white)) | |
(objects (list *a*)) | |
(send (send (send *irtviewer* :viewer) :viewsurface) :color (float-vector 1 0 0)) | |
(dotimes (i 1000) | |
(dotimes (j 1000) | |
(let ((x (- (* 10 i) 200)) |
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
\begin{algorithm} | |
\caption{3-D Footstep Planning with A*} | |
\begin{algorithmic} | |
\STATE $O \Leftarrow <S>$ | |
\STATE $C \Leftarrow \emptyset$ | |
\WHILE{$O$} | |
\STATE $N \Leftarrow pop(O)$ | |
\IF{$N$ is $G$} | |
\RETURN $path(N)$ | |
\ENDIF |
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
(make-irtviewer :draw-origin nil) | |
(setq *a* (make-cube 240 150 2)) | |
(setq *b* (make-cube 240 150 2)) | |
(setq *plane* (make-cube 300 200 1)) | |
(send *b* :locate (float-vector 0 0 150) :world) | |
(send *b* :rotate (deg2rad 20) :y) | |
(setf (get *plane* :face-color) :green) | |
(gl::transparent *plane* 0.2) | |
(send *plane* :newcoords (send *b* :copy-worldcoords)) |
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 python | |
import xml.etree.ElementTree as ET | |
import sys | |
tree = ET.parse(sys.argv[1]) | |
root = tree.getroot() | |
print root | |
def printRemappiing(node): | |
if len(node.findall("remap")) != 0: |
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
<launch><node pkg="rostopic" type="rostopic" name="input" | |
args="pub /input std_msgs/String '{data: input}' -r 1"> | |
</node> | |
<node pkg="jsk_topic_tools" type="relay" name="relay_0"> | |
<remap from="~input" to="input" /> | |
</node><node pkg="jsk_topic_tools" type="relay" name="relay_1"> | |
<remap from="~input" to="relay_0/output" /> | |
</node><node pkg="jsk_topic_tools" type="relay" name="relay_2"> | |
<remap from="~input" to="relay_1/output" /> | |
</node><node pkg="jsk_topic_tools" type="relay" name="relay_3"> |
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
#!/bin/sh | |
FORCE_SENSORS="/lfsensor /rfsensor /rhsensor /lhsensor" | |
IMAGES="/multisense_local/left/image_rect_color /multisense_local/right/image_rect_color /multisense/depth /multisense_local/left/camera_info /chest_camera/image_raw" | |
LASERS="/multisense/lidar_scan" | |
rosbag record /joint_states /imu ${FORCE_SENSORS} ${IMAGES} ${LASERS} -e '/motor_states.*' --duration=60 |
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 python | |
import matplotlib.patches as mpatches | |
import matplotlib.pyplot as plt | |
from matplotlib.dates import DateFormatter, MinuteLocator, SecondLocator | |
import csv | |
ax = plt.gca() | |
# ax.xaxis_date() | |
# myFmt = DateFormatter('%H:%M:%S') |