Skip to content

Commit 28703bd

Browse files
committed
All 4 versions running now: scene/servicer cams, and external and pro detection. External detection works well, internal does not.
1 parent dc98552 commit 28703bd

9 files changed

+90
-8
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
launch:
2+
- arg:
3+
name: device
4+
default: "0"
5+
6+
- node_container:
7+
pkg: rclcpp_components
8+
exec: component_container
9+
name: apriltag_container
10+
namespace: ""
11+
composable_node:
12+
- pkg: apriltag_ros
13+
plugin: AprilTagNode
14+
name: apriltag
15+
namespace: apriltag
16+
remap:
17+
- from: /apriltag/image_rect
18+
to: /scene_camera/color
19+
- from: /apriltag/camera_info
20+
to: /scene_camera/camera_info
21+
param:
22+
- from: $(find-pkg-share "space_satellite_sim_camera_cal")/launch/tags_36h11.yaml
23+
extra_arg:
24+
- name: use_intra_process_comms
25+
value: "True"

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/launch/agent_bridge.launch.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
<include
66
file="$(find-pkg-share space_satellite_sim_camera_cal)/launch/36h11.launch.yml"
77
/>
8+
<include
9+
file="$(find-pkg-share space_satellite_sim_camera_cal)/launch/36h11_scene.launch.yml"
10+
/>
811
</launch>

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/objectives/calibrate_camera_-_detect_tags.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
parameters="{parameters}"
1717
camera_optical_frame="{camera_optical_frame}"
1818
waypoint_name="Camera Calibration 1"
19+
camera_image_topic="{camera_image_topic}"
20+
camera_info_topic="{camera_info_topic}"
1921
/>
2022
<SubTree
2123
ID="Calibrate Camera at Waypoint - Detect"
@@ -24,6 +26,8 @@
2426
parameters="{parameters}"
2527
camera_optical_frame="{camera_optical_frame}"
2628
waypoint_name="Camera Calibration 2"
29+
camera_image_topic="{camera_image_topic}"
30+
camera_info_topic="{camera_info_topic}"
2731
/>
2832
<SubTree
2933
ID="Calibrate Camera at Waypoint - Detect"
@@ -32,6 +36,8 @@
3236
parameters="{parameters}"
3337
camera_optical_frame="{camera_optical_frame}"
3438
waypoint_name="Camera Calibration 3"
39+
camera_image_topic="{camera_image_topic}"
40+
camera_info_topic="{camera_info_topic}"
3541
/>
3642
<SubTree
3743
ID="Calibrate Camera at Waypoint - Detect"
@@ -40,6 +46,8 @@
4046
parameters="{parameters}"
4147
camera_optical_frame="{camera_optical_frame}"
4248
waypoint_name="Camera Calibration 4"
49+
camera_image_topic="{camera_image_topic}"
50+
camera_info_topic="{camera_info_topic}"
4351
/>
4452
<Decorator
4553
ID="ForEach"
@@ -128,6 +136,11 @@
128136
<Metadata subcategory="Perception - Camera Calibration" />
129137
</MetadataFields>
130138

139+
<inout_port name="camera_image_topic" default="/scene_camera/color" />
140+
<inout_port
141+
name="camera_info_topic"
142+
default="/scene_camera/camera_info"
143+
/>
131144
<input_port name="camera_mounting_frame" default="external_camera_link" />
132145
<input_port
133146
name="camera_optical_frame"

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/objectives/calibrate_camera_at_waypoint_-_detect.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
camera_optical_frame="{camera_optical_frame}"
5252
computed_pose="{computed_pose}"
5353
parameters="{parameters}"
54+
camera_image_topic="{camera_image_topic}"
55+
camera_info_topic="{camera_info_topic}"
5456
/>
5557
</Decorator>
5658
<Action
@@ -78,6 +80,9 @@
7880
<Metadata runnable="false" />
7981
<Metadata subcategory="Perception - Camera Calibration" />
8082
</MetadataFields>
83+
84+
<inout_port name="camera_info_topic" default="{camera_info_topic}" />
85+
<inout_port name="camera_image_topic" default="{camera_image_topic}" />
8186
<inout_port
8287
name="camera_optical_frame"
8388
default="{camera_optical_frame}"

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/objectives/calibrate_scene_camera.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
_favorite="false"
88
>
99
<SubTree
10-
ID="Calibrate Camera - Detect Tags"
10+
ID="Calibrate Camera"
1111
_collapsed="true"
1212
camera_mounting_frame="external_camera_link"
13-
camera_optical_frame="scene_camera_optical_frame"
14-
mounting_pose_save_file="calibrated_scene_camera_mounting_pose.txt"
13+
camera_optical_frame="scene_camera_color_optical_frame"
14+
mounting_pose_save_file="calibrated_scene_cam_mounting_pose.txt"
15+
mounting_pose_parent_frame="world"
1516
/>
1617
</BehaviorTree>
1718
<TreeNodesModel>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<root
3+
BTCPP_format="4"
4+
main_tree_to_execute="Calibrate Scene Camera - Detect Tags"
5+
>
6+
<!--//////////-->
7+
<BehaviorTree
8+
ID="Calibrate Scene Camera - Detect Tags"
9+
_description="Calibrate the scene camera from multiple waypoints using the DetectAprilTags behavior."
10+
_favorite="false"
11+
>
12+
<SubTree
13+
ID="Calibrate Camera - Detect Tags"
14+
_collapsed="true"
15+
camera_mounting_frame="external_camera_link"
16+
camera_optical_frame="scene_camera_color_optical_frame"
17+
mounting_pose_save_file="calibrated_scene_cam_mounting_pose_detect.txt"
18+
camera_image_topic="/scene_camera/color"
19+
camera_info_topic="/scene_camera/camera_info"
20+
mounting_pose_parent_frame="world"
21+
/>
22+
</BehaviorTree>
23+
<TreeNodesModel>
24+
<SubTree ID="Calibrate Scene Camera - Detect Tags">
25+
<MetadataFields>
26+
<Metadata runnable="true" />
27+
<Metadata subcategory="Perception - Camera Calibration" />
28+
</MetadataFields>
29+
</SubTree>
30+
</TreeNodesModel>
31+
</root>

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/objectives/calibrate_servicer_camera.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
_collapsed="true"
1212
camera_mounting_frame="servicer_camera_mounting_frame"
1313
camera_optical_frame="servicer_camera_optical_frame"
14-
mounting_pose_save_file="calibrated_servicer_camera_mounting_pose.txt"
14+
mounting_pose_save_file="calibrated_servicer_cam_mounting_pose.txt"
1515
mounting_pose_parent_frame="world"
1616
/>
1717
</BehaviorTree>

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/objectives/calibrate_servicer_camera_-_detect_tags.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66
<!--//////////-->
77
<BehaviorTree
88
ID="Calibrate Servicer Camera - Detect Tags"
9-
_description="Calibrate the servicer camera from multiple waypoints."
9+
_description="Calibrate the servicer camera from multiple waypoints using the DetectAprilTags behavior."
1010
_favorite="false"
1111
>
1212
<SubTree
1313
ID="Calibrate Camera - Detect Tags"
1414
_collapsed="true"
1515
camera_mounting_frame="servicer_camera_mounting_frame"
1616
camera_optical_frame="servicer_camera_optical_frame"
17-
mounting_pose_save_file="calibrated_servicer_camera_mounting_pose.txt"
17+
mounting_pose_save_file="calibrated_servicer_cam_mounting_pose.txt"
1818
mounting_pose_parent_frame="world"
19+
camera_image_topic="/servicer_camera/color"
20+
camera_info_topic="/servicer_camera/camera_info"
1921
/>
2022
</BehaviorTree>
2123
<TreeNodesModel>

src/moveit_pro_kinova_configs/space_satellite_sim_camera_cal/objectives/camera_pose_from_cal_tool_-_detect_tags.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
ID="GetImage"
1616
message_out="{image}"
1717
timeout_sec="2.0"
18-
topic_name="/servicer_camera/color"
18+
topic_name="{camera_image_topic}"
1919
/>
2020
<Action
2121
ID="GetCameraInfo"
2222
message_out="{camera_info}"
2323
timeout_sec="2.0"
24-
topic_name="/servicer_camera/camera_info"
24+
topic_name="{camera_info_topic}"
2525
/>
2626
<Action
2727
ID="DetectAprilTags"
@@ -115,6 +115,8 @@
115115
<Metadata subcategory="Perception - Camera Calibration" />
116116
</MetadataFields>
117117

118+
<inout_port name="camera_image_topic" default="{camera_image_topic}" />
119+
<inout_port name="camera_info_topic" default="{camera_info_topic}" />
118120
<inout_port
119121
name="camera_optical_frame"
120122
default="{camera_optical_frame}"

0 commit comments

Comments
 (0)