[Documentation] [TitleIndex] [WordIndex

Only released in EOL distros:  

katana_driver: katana | katana_arm_gazebo | katana_description | katana_gazebo_plugins | katana_joint_movement_adapter | katana_kinect_calibration | katana_msgs | katana_teleop | katana_trajectory_filter | katana_tutorials | kni

Package Summary

This package uses the ar_kinect module to calibrate a fixed joint between the base link and a Kinect camera which monitors a Katana arm equipped with an AR code.

katana_driver: katana | katana_arm_gazebo | katana_description | katana_gazebo_plugins | katana_ikfast_kinematics_plugin | katana_joint_movement_adapter | katana_kinect_calibration | katana_moveit_ikfast_plugin | katana_msgs | katana_teleop | katana_trajectory_filter | katana_tutorials | kni

Package Summary

This package uses the ar_kinect module to calibrate a fixed joint between the base link and a Kinect camera which monitors a Katana arm equipped with an AR code.

This package uses the ar_kinect module to calibrate a fixed joint between the base link and a Kinect camera which monitors a Katana arm equipped with an AR code. Make sure to merge the latest uos-public-fuerte.rosinstall to get the correct ar_kinect and ccny_vision stacks.

Tutorial

First of all you need to attach an AR code to the arm. The trajectory of the calibration was choosen to expose the front side of katana_motor4_lift_joint best.

ar_marker_on_katana.jpg

If you want to use the standard setup, you can print the AR code from data/4x4_9.ps at 42mm side length and stick it to the proper place.

Here comes the tricky part... You need to provide a transform between /base_link and the center of the pattern, which is expected to be called /kinect_pattern. This could look something like:

rosrun tf static_transform_publisher .075 -.035 0.000 .151 1.571 -1.571 /katana_motor4_lift_link /katana_pattern 100

You can also just include it with the rest of your robots urdf description.

Now, fire up your usual setup including the kinect node and the katana driver. Make sure all reachable positions in front of the katana arm can be seen by the Kinect and move all possible obstacles out of the way! The arm will not perform any kind of obstacle avoidance and will move through most of the reachable space during calibration.

Now, you can simply run the following to calibrate:

roslaunch katana_kinect_calibration calibrate.launch

If you want to monitor the calibration procedure in rviz, make sure your kinect_link frame is not connected to the rest of your robot's tf tree and add publish_tf:=true to the above. This will show you the averaged position of the Kinect w.r.t. your robot for each pose independently.

The calibration will move the arm through 6 poses and the module will try to detect the AR marker a sufficient number of times. If the calibration does not find the pattern often enough (or not at all), make sure illumination is not too bright and if possible indirect!(shading the pattern with your hand might even help...)

When finished, the arm will move to the old pose and a config file is written to $HOME/.ros/kinect_pose.urdf.xacro. This can be used in a robot description to glue the Kinect to the base link using e.g.

<joint name="kurtana_kinect_joint" type="fixed">
 <parent link="base_link" />
 <child  link="kinect_link" />
 <include filename="$(env HOME)/.ros/kinect_pose.urdf.xacro" />
 <origin xyz="${kinect_xyz}" rpy="${kinect_rpy}"/>
</joint>

The launch file also provides all other parameters of the configure.py node as args, so you can influence the whole procedure quite a bit.

ROS API

This package provides only one node calibrate.py which will perform the actual calibration procedure, write the calibrated parameters and terminate.

calibrate.py

performs calibration of kinect pose using katana

Subscribed Topics

/katana_joint_states (sensor_msgs/JointState) /ar_pose_markers (ar_pose/ARMarkers)

Services Called

katana_arm_controller/joint_movement_action (katana_msgs/JointMovementAction)

Parameters

~samples_required (int, default: 300) ~timeout (int, default: 20) ~runs (int, default: 1) ~config_file (string, default: $HOME/.ros/kinect_pose.urdf.xacro) ~write_config (bool, default: true) ~publish_tf (bool, default: false)

Required tf Transforms

/katana_pattern/base_link

Provided tf Transforms

/kinect_link/base_link

2019-11-09 12:52