This file contains hidden or 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 | |
# -*- coding:utf-8 -*- | |
import multiprocessing | |
import os.path as osp | |
import sys | |
import yaml | |
from paramiko import SSHClient | |
from paramiko import AutoAddPolicy |
This file contains hidden or 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 | |
import torch | |
import chainer | |
def pytorch_to_chainer(src, dst): | |
src_params = {name: param for name, param in src.named_parameters()} | |
for (dst_param_name, dst_param) in dst.namedparams(): | |
try: | |
layer_name, p_name = dst_param_name[1:].split('/') |
This file contains hidden or 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> | |
<include file="$(find jsk_pcl_ros)/launch/openni2_local.launch"> | |
<arg name="rgb_camera_info_url" value="file://$(find jsk_hrp2_ros_bridge)/calib_data/xtion_rgb_20160701.yaml" /> | |
<arg name="publish_tf" value="false" /> | |
</include> | |
<node name="check_openni2_node" | |
pkg="jsk_hrp2_ros_bridge" type="check_openni2_node.py" > | |
<param name="camera" value="camera" /> | |
<param name="sleep_cycle" value="10" /> |
This file contains hidden or 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 sys,subprocess,traceback | |
import rospy | |
import cv2 | |
import time | |
import os | |
from std_srvs.srv import Empty, EmptyResponse | |
from sensor_msgs.msg import Image | |
from sensor_msgs.msg import CameraInfo |
This file contains hidden or 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> | |
<include file="$(find jsk_pcl_ros)/launch/openni2_local.launch"> | |
<arg name="rgb_camera_info_url" value="file://$(find jsk_hrp2_ros_bridge)/calib_data/xtion_rgb_20160701.yaml" /> | |
<arg name="publish_tf" value="false" /> | |
</include> | |
<include file="$(find jsk_pcl_ros)/launch/openni2_remote.launch"> | |
</include> | |
</launch> |
This file contains hidden or 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> | |
<arg name="frame_id" default="BODY"/> <!-- Fixed frame id, you may set "base_link" or "base_footprint" if they are published --> | |
<arg name="rgb_topic" default="/camera_remote/rgb_half/image_rect_color" /> | |
<arg name="depth_registered_topic" default="/camera_remote/depth_registered/hw_registered/image_rect_raw" /> | |
<arg name="camera_info_topic" default="/camera_remote/rgb_half/camera_info" /> | |
<arg name="rviz" default="true" /> | |
<arg name="rtabmapviz" default="true" /> | |
<arg name="visual_odometry" default="false"/> <!-- Generate visual odometry --> | |
<arg name="wait_for_transform" default="0.5"/> | |
<include file="$(find rtabmap_ros)/launch/rgbd_mapping.launch" pass_all_args="true" /> |
This file contains hidden or 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 | |
# -*- coding:utf-8 -*- | |
import syslog | |
syslog.openlog("record_launch_time", syslog.LOG_PID | syslog.LOG_PERROR, | |
syslog.LOG_LOCAL0) | |
syslog.syslog(syslog.LOG_INFO, 'MESSAGE') | |
syslog.closelog() |
This file contains hidden or 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 | |
# -*- coding:utf-8 -*- | |
from __future__ import division, print_function, absolute_import, unicode_literals | |
import argparse | |
import sys | |
import time | |
import numpy as np |
This file contains hidden or 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 | |
# -*- coding:utf-8 -*- | |
from __future__ import division, print_function, absolute_import, unicode_literals | |
from time import time | |
def main(): | |
NG_list = ['Linux-Shipping', | |
'Linux-Test', |
This file contains hidden or 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
#include <iostream> | |
#include <boost/geometry.hpp> | |
#include <boost/geometry/geometries/point_xy.hpp> | |
#include <boost/numeric/conversion/bounds.hpp> | |
#include <boost/foreach.hpp> | |
int main() | |
{ |