Skip to content

Commit

Permalink
break out detect charuco
Browse files Browse the repository at this point in the history
  • Loading branch information
tetov committed Sep 4, 2024
1 parent 4613c5b commit 986abab
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 deletions.
21 changes: 21 additions & 0 deletions launch/detect_charuco.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<launch xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://gist.githubusercontent.com/nalt/dfa2abc9d2e3ae4feb82ca5608090387/raw/roslaunch.xsd">

<arg name="board" default="large" />

<group if="$(eval board == 'large')">
<arg name="squares_sides_size_in_meters" value="0.040" />
<arg name="markers_sides_size_in_meters" value="0.031" />
<arg name="number_of_squares_in_x" value="14" />
<arg name="number_of_squares_in_y" value="9" />
<arg name="number_of_markers" value="63" />
</group>

<include file="$(find charuco_detector)/launch/charuco_detector.launch"
if="$(eval board == 'large')" pass_all_args="true">
<arg name="image_topic" value="/rgbd_camera/rgb/image_raw" />
<arg name="camera_info_topic" value="/rgbd_camera/rgb/camera_info" />
</include>
</launch>
25 changes: 7 additions & 18 deletions launch/eye_in_hand.launch
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,26 @@

<arg name="board" default="large" />

<include file="$(dirname)/detect_charuco.launch">
<arg name="board" value="$(arg board)" />
</include>
<include file="$(dirname)/rgbd.launch">
<arg name="no_mapping" value="true" />
</include>
<include file="$(dirname)/robots.launch">
<arg name="no_rrc" value="true" />
</include>

<group if="$(eval board == 'large')">
<arg name="squares_sides_size_in_meters" value="0.040" />
<arg name="markers_sides_size_in_meters" value="0.031" />
<arg name="number_of_squares_in_x" value="14" />
<arg name="number_of_squares_in_y" value="9" />
<arg name="number_of_markers" value="63" />
</group>

<include file="$(find charuco_detector)/launch/charuco_detector.launch"
if="$(eval board == 'large')" pass_all_args="true">
<arg name="image_topic" value="/rgbd_camera/rgb/image_raw" />
<arg name="camera_info_topic" value="/rgbd_camera/rgb/camera_info" />
</include>

<include file="$(find easy_handeye)/launch/calibrate.launch">
<arg name="eye_on_hand" value="true" />

<!-- fill in the following parameters according to your robot's published tf frames -->
<arg name="robot_base_frame" value="/base_link" />
<arg name="robot_effector_frame" value="/tool0" />
<arg name="robot_base_frame" value="base_link" />
<arg name="robot_effector_frame" value="tool0" />

<!-- fill in the following parameters according to your tracking system's published tf frames -->
<arg name="tracking_base_frame" value="/rgbd_camera_rgb_camera_optical_frame" />
<arg name="tracking_marker_frame" value="/charuco" />
<arg name="tracking_base_frame" value="rgbd_camera_rgb_camera_optical_frame" />
<arg name="tracking_marker_frame" value="charuco" />

<arg name="freehand_robot_movement" value="true" />

Expand Down

0 comments on commit 986abab

Please sign in to comment.