uoft-cs-robotics / robot_system_tools

Repository containing software infrastructure for running experiments on Franka Emika Panda Arms
9 stars 3 forks source link

automated robot moving to collect data for camera in hand configuration and ROS based api #23

Open Ruthrash opened 1 year ago

Ruthrash commented 1 year ago

usage: python3 ROSCameraRobotCalibration.py --move_robot_automatically True --use_delta_poses False/True ....other args...

n-yoshikawa commented 1 year ago

I tested the calibration script.

What I did

  1. Start bash script

    cd /root/git/frankapy
    bash ./bash_scripts/start_control_pc.sh -i 172.16.0.4 -u sf3202inuc -d /root/git/franka-interface -a 172.16.0.2 -w 172.16.0.3
  2. Start camera based on a previous comment at https://github.com/pairlab/franka_arm_infra/issues/22#issuecomment-1498034105

    roslaunch realsense2_camera rs_camera.launch filters:=pointcloud enable_infra1:=false enable_infra2:=false
  3. Start end-effctor tf (for customized gripper)

    cd ~/git/frankapy/catkin_ws/src/franka_control
    python3 ee_robotiq_transformation.py
  4. Start calibration

    python3 ROSCameraRobotCalibration.py --move_robot_automatically True --robot_base_frame_name /panda_link0 --ee_frame_name /virtual_eef_link --rgb_image_topic /camera/color/image_raw --rgb_camera_info_topic /camera/color/camera_info

Result

Setup

PXL_20230412_203205813

n-yoshikawa commented 1 year ago

after truying the autoamtic calibration from the reset_arm confgituration, we had the following observations:


images of two scenarios robot reacing joint limits: image image

n-yoshikawa commented 1 year ago

as we discussed we started the robot from another configuration, as shown below, and right after starting the robot goes to initial reset configuration and starts moving. So, regardless of initial configuration set by user, the robot always goes to reset configuration. However this is different from what we have discussed in the meeting and we were expecting, but we think it is safer to be this way, since the robot motion is quite wide. So, for different robot, maybe it is safer the user moves the robot ee.


initial configuration: image

image

image

n-yoshikawa commented 1 year ago

There should be a photo with inidication of distances from the robot for the user, so that they know where to place the apriltag board.