Skip to content

Instantly share code, notes, and snippets.

View Kanazawanaoaki's full-sized avatar

Naoaki Kanazawa Kanazawanaoaki

  • JSK Lab, The University of Tokyo
  • Tokyo, Japan
View GitHub Profile
val1: 100
val2: 200
## ibm config
image_vae: False
image_channel: 3
image_width: 128
image_height: 128
image_units: [256, 6]
image_model_file: "/project_data/sample_rcup_reach/models/image_model.npz"
<launch>
<arg name="collect_data" default="true" />
<node name="data_collection_rosbag_test"
pkg="jsk_data" type="data_collection_server.py"
output="screen" clear_params="true" if="$(arg collect_data)">
<rosparam subst_value="true">
message_filters: true
approximate_sync: true
save_dir: ~/Desktop/data_collection_rosbag_test
@Kanazawanaoaki
Kanazawanaoaki / dump_listener_test.py
Last active December 29, 2021 05:34
pickle::dump_test
#!/usr/bin/env python
import rospy
from smach_msgs.msg import SmachContainerStatus
def callback(msg):
print (pickle.loads(msg.local_data))
def listener():
rospy.init_node('dump_listener', anonymous=True)
+ docker run --rm --privileged --userns=host --gpus all --mount type=bind,src=/home/kanazawa/20211223-195546-3000-dataset_training-9-industry-objects-train-test-in-order-300x300-rembg-w-config/learn,dst=/root/Tensorflow/demo/models_test object_detection bash docker_train.sh
generate_record.sh: line 1: 22 Illegal instruction (core dumped) python3 generate_tfrecord.py -x ./images/train -l ./annotations/label_map.pbtxt -o ./annotations/train.record
generate_record.sh: line 3: 42 Illegal instruction (core dumped) python3 generate_tfrecord.py -x ./images/test -l ./annotations/label_map.pbtxt -o ./annotations/test.record
docker_train.sh: line 10: 59 Illegal instruction (core dumped) python3 model_main-fine-tune.py --model_dir=models/my_ssd --pipeline_config_path=models/my_ssd/pipeline.config --num_train_steps=$ITERATION_TIMES
convert.sh: line 5: 76 Illegal instruction (core dumped) python3 ./export_tflite_ssd_graph.py --pipeline_config_path="my_ssd/pipeline.config" --trained_checkpoint_p
- git:
local-name: jsk_robot
uri: https://github.com/jsk-ros-pkg/jsk_robot.git
version: master
$ python diagnos_ether_listener.py
EtherCAT Master Dropped Packets: 167983
EtherCAT Master RX Late Packet: 4
EtherCAT Device (br_caster_r_wheel_motor)Drops: 0
EtherCAT Device (br_caster_l_wheel_motor)Drops: 0
EtherCAT Device (br_caster_rotation_motor)Drops: 0
EtherCAT Device (fl_caster_r_wheel_motor)Drops: 0
EtherCAT Device (fl_caster_l_wheel_motor)Drops: 0
EtherCAT Device (fl_caster_rotation_motor)Drops: 0
EtherCAT Device (bl_caster_r_wheel_motor)Drops: 0
- git:
local-name: jsk_robot
uri: https://github.com/jsk-ros-pkg/jsk_robot.git
version: master
#VRML_SIM R2021a utf8
# license: Copyright Cyberbotics Ltd. Licensed for use only with Webots.
# license url: https://cyberbotics.com/webots_assets_license
# documentation url: https://www.cyberbotics.com/doc/guide/salamander
# The "Salamander" robot is a salamander-like robot developed by the EPFL BioRob laboratory.
PROTO Salamander-kadai-4 [
field SFVec3f translation 0 0 0 # Is `Transform.translation`.
field SFRotation rotation 0 1 0 0 # Is `Transform.rotation`.
field SFString name "Salamander-kadai-4" # Is `Solid.name`.
(load "package://pr2eus/pr2-interface.l")
(pr2-init)
(setq *cds* (make-cascoords))
(objects (list *pr2*))
(send *cds* :newcoords (send (send *pr2* :rarm :end-coords) :copy-worldcoords))
;; add for rosservice
==> Expanding alias 'bt' from 'catkin bt' to 'catkin b --this'
==> Expanding alias 'b' from 'catkin b --this' to 'catkin build --this'
-------------------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/kanazawa/ros/jsk_demo_ws
-------------------------------------------------------------------
Build Space: [exists] /home/kanazawa/ros/jsk_demo_ws/build
Devel Space: [exists] /home/kanazawa/ros/jsk_demo_ws/devel
Install Space: [unused] /home/kanazawa/ros/jsk_demo_ws/install