Skip to content

asanolab/auto_assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto_assembly

Install

Demo

  • magician
roslaunch magician display.launch
rosrun magician_control joint_state_feedback.py
rosrun tf2_ros static_transform_publisher -0.06 -0.059 0 0 0 0 link_6 tcp  #(optional)
  • realsense and aruco
roslaunch realsense2_camera rs_camera.launch align_depth:=true
rosrun dobot_magician_demo aruco_detect.py _dict:=DICT_5X5_1000 _marker_id:=0 _marker_length:=0.018 _image:=/camera/color/image_raw _camera_info:=/camera/color/camera_info _marker_frame:=aruco_marker_0
  • coordinates

    • pick first tf data for stable (fixed) transformation. (avoid vibrated result of recognition)
    rosrun tf2_ros static_transform_publisher 0.072 0.072 -0.057 0 0 0  aruco_marker_0 base_link
    

    tf_echo the camera link with base_link by the below, and copy xyz and RPY

    rosrun tf tf_echo /camera_link /base_link
    

    then, kill “rosrun tf2_ros static_transform_publisher 0.072 0.072 -0.057 0 0 0 aruco_marker_0 base_link”
    then, execute below with copied xyzRPY

    rosrun tf2_ros static_transform_publisher x y z R P Y camera_link base_link
    
  • yolo

    rosrun yolov8_detector yolov8_multi_tf_node.py _model:="path to ur weights" _image:=/camera/color/image_raw _camera_info:=/camera/color/camera_info _device:=0 _plane_z:=-0.008 _classes:=peltier,motor,gear,temp,sink _kpt_head_idx:=0 _kpt_tail_idx:=1 _debug_image:=/yolo/module/debug_image
    
  • start demo

    rosrun dobot_magician_demo grasp_from_tf.py
    
    • memo
      • デモを実行する前にmotor, temp, sink, peltierの4つを同時に認識しtfがつながっている必要がある。していないと以下のエラーがでる
        [ERROR] [1774930559.857751]: TF not found: base_link -> temp. Check frame name and publisher.
        
      • tf_treeは以下で確認できる
         $ rosrun rqt_tf_tree rqt_tf_tree 
        

Acknowledgement

auto_assembly was initially implemented by @icybarbarian (Cheng Xingyan)

About

Automated parts assembly demonstration using Dobot magician and deep learning recognition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors