Skip to content

Commit 96962a7

Browse files
rlpratt12dyackzan
authored andcommitted
Added 4 larger april tags to each corner. Grappling objective works.
1 parent 42ff6bb commit 96962a7

File tree

8 files changed

+178
-35
lines changed

8 files changed

+178
-35
lines changed

src/site_configs/picknik_kinova_satellite_sim/config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ hardware:
2626
urdf_params:
2727
- arm: "gen3"
2828
- dof: "7"
29-
- mujoco_keyframe: "view_tag"
29+
- mujoco_keyframe: "moving_satellite"
3030
- mujoco_model: "description/mujoco/scene.xml"
3131
- mujoco_viewer: "true"
3232

src/site_configs/picknik_kinova_satellite_sim/config/fuse/fuse.rviz

Lines changed: 68 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Visualization Manager:
5151
Plane Cell Count: 10
5252
Reference Frame: <Fixed Frame>
5353
Value: true
54-
- Angle Tolerance: 0.10000000149011612
54+
- Angle Tolerance: 0.0010000000474974513
5555
Class: rviz_default_plugins/Odometry
5656
Covariance:
5757
Orientation:
@@ -69,9 +69,9 @@ Visualization Manager:
6969
Value: true
7070
Value: true
7171
Enabled: true
72-
Keep: 100
72+
Keep: 1
7373
Name: Odometry
74-
Position Tolerance: 0.10000000149011612
74+
Position Tolerance: 0.0010000000474974513
7575
Shape:
7676
Alpha: 1
7777
Axes Length: 1
@@ -299,6 +299,8 @@ Visualization Manager:
299299
Value: false
300300
half_arm_2_link:
301301
Value: false
302+
map:
303+
Value: true
302304
mj_world:
303305
Value: false
304306
odom:
@@ -367,7 +369,66 @@ Visualization Manager:
367369
Show Axes: true
368370
Show Names: false
369371
Tree:
370-
{}
372+
mj_world:
373+
fts:
374+
{}
375+
pinch:
376+
{}
377+
scene_camera_optical_frame:
378+
{}
379+
world:
380+
base_link:
381+
shoulder_link:
382+
half_arm_1_link:
383+
half_arm_2_link:
384+
forearm_link:
385+
spherical_wrist_1_link:
386+
spherical_wrist_2_link:
387+
bracelet_link:
388+
end_effector_link:
389+
fts_link:
390+
robotiq_85_base_link:
391+
finger_tip_closed_point:
392+
{}
393+
grasp_link:
394+
{}
395+
robotiq_85_left_inner_knuckle_link:
396+
{}
397+
robotiq_85_left_knuckle_link:
398+
robotiq_85_left_finger_link:
399+
robotiq_85_left_finger_tip_link:
400+
{}
401+
robotiq_85_right_inner_knuckle_link:
402+
{}
403+
robotiq_85_right_knuckle_link:
404+
robotiq_85_right_finger_link:
405+
robotiq_85_right_finger_tip_link:
406+
{}
407+
external_camera_link:
408+
scene_camera_bottom_screw_frame:
409+
scene_camera_link:
410+
scene_camera_color_frame:
411+
scene_camera_color_optical_frame:
412+
{}
413+
scene_camera_depth_frame:
414+
scene_camera_depth_optical_frame:
415+
{}
416+
scene_camera_infra1_frame:
417+
scene_camera_infra1_optical_frame:
418+
{}
419+
scene_camera_infra2_frame:
420+
scene_camera_infra2_optical_frame:
421+
{}
422+
map:
423+
{}
424+
odom:
425+
{}
426+
table:
427+
{}
428+
wrist_camera_optical_frame:
429+
satellite_tag_0:
430+
target_frame_satellite_tag_0:
431+
{}
371432
Update Interval: 0
372433
Value: true
373434
Enabled: true
@@ -416,7 +477,7 @@ Visualization Manager:
416477
Views:
417478
Current:
418479
Class: rviz_default_plugins/Orbit
419-
Distance: 5.894608974456787
480+
Distance: 3.2315683364868164
420481
Enable Stereo Rendering:
421482
Stereo Eye Separation: 0.05999999865889549
422483
Stereo Focal Distance: 1
@@ -431,10 +492,10 @@ Visualization Manager:
431492
Invert Z Axis: false
432493
Name: Current View
433494
Near Clip Distance: 0.009999999776482582
434-
Pitch: 0.4603983163833618
495+
Pitch: 0.4003983736038208
435496
Target Frame: <Fixed Frame>
436497
Value: Orbit (rviz)
437-
Yaw: 0.8403979539871216
498+
Yaw: 5.708583354949951
438499
Saved: ~
439500
Window Geometry:
440501
Displays:

src/site_configs/picknik_kinova_satellite_sim/config/fuse/fuse.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ state_estimator:
3838
# the target frame should be the center of mass of the object for optimal performance, as the motion model assumes that it is operating on the center of mass of the object
3939
# the april tag (`satellite_tag_x`) will be a descendent of the estimation frame (`servicer_camera_optical_frame`) in the tf tree
4040
# thus, we need a different leaf in the tf tree to represent each satellite tag's correspondence to the target frame
41-
# transforms: ['satellite_tag_0', 'satellite_tag_1', 'satellite_tag_2']
42-
transforms: ['satellite_tag_0']
41+
transforms: ['satellite_tag_0', 'satellite_tag_1', 'satellite_tag_2', 'satellite_tag_3']
4342

4443
# this frame is the frame that we are actually estimating
4544
# fuse will publish an odom from the `estimation_frame` to this frame (and optionally a tf, too)
4645
target_frame: 'target_frame'
4746

4847
# this is the frame that all transforms should be parented to for fuse to use as a measurement
4948
# thus a measurement will be a tf from `estimation_frame` to any frame in `transforms` (see above)
50-
estimation_frame: 'wrist_camera_optical_frame'
51-
# estimation_frame: 'scene_camera_optical_frame'
49+
estimation_frame: 'scene_camera_optical_frame'
5250
position_dimensions: ['x', 'y', 'z']
5351
orientation_dimensions: ['roll', 'pitch', 'yaw']
5452
# TODO(anyone): set these empirically (collect data and estimate covariances) instead of just with arbitrary values
@@ -73,11 +71,9 @@ state_estimator:
7371
odom_frame_id: 'odom'
7472

7573
# this should be the same as `estimation_frame` in `transform_sensor` above
76-
map_frame_id: 'wrist_camera_optical_frame'
77-
# map_frame_id: 'scene_camera_optical_frame'
74+
map_frame_id: 'scene_camera_optical_frame'
7875
# this should be the same as `map_frame_id`
79-
world_frame_id: 'wrist_camera_optical_frame'
80-
# world_frame_id: 'scene_camera_optical_frame'
76+
world_frame_id: 'scene_camera_optical_frame'
8177

8278
# optionally publish a tf
8379
publish_tf: true

src/site_configs/picknik_kinova_satellite_sim/description/mujoco/scene.xml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@
4242
texrepeat="5 5"
4343
reflectance="0.2"
4444
/>
45-
<texture
46-
type="2d"
47-
name="april_tag"
48-
file="assets/black_white.png"
49-
width="32"
50-
height="32"
51-
/>
52-
<material name="april_tag" texture="april_tag" />
5345
<texture
5446
type="2d"
5547
name="satellite"
@@ -58,6 +50,14 @@
5850
height="32"
5951
/>
6052
<material name="satellite" texture="satellite" />
53+
<texture type="2d" name="ar_marker_0" file="assets/tag36_11_00000.png"/>
54+
<texture type="2d" name="ar_marker_1" file="assets/tag36_11_00001.png"/>
55+
<texture type="2d" name="ar_marker_2" file="assets/tag36_11_00002.png"/>
56+
<texture type="2d" name="ar_marker_3" file="assets/tag36_11_00003.png"/>
57+
<material name="ar_marker_0" texture="ar_marker_0" texuniform="false"/>
58+
<material name="ar_marker_1" texture="ar_marker_1" texuniform="false"/>
59+
<material name="ar_marker_2" texture="ar_marker_2" texuniform="false"/>
60+
<material name="ar_marker_3" texture="ar_marker_3" texuniform="false"/>
6161
</asset>
6262

6363
<worldbody>
@@ -74,13 +74,12 @@
7474
<site
7575
name="scene_camera_optical_frame"
7676
pos="-0.3 0.3 1.0"
77-
euler="3.1416 -1.0472 -1.5708"
77+
euler="3.142 1.047 1.571"
7878
size="0.03"
7979
/>
8080
</worldbody>
8181

8282
<asset>
83-
<mesh name="april_tag" file="april_tag.obj" />
8483
<mesh name="satellite" file="satellite.obj" />
8584
<mesh name="satellite_box" file="satellite_box.obj" />
8685
<mesh name="rafti_collision_1" file="rafti_collision_1.obj" />
@@ -170,6 +169,34 @@
170169
<geom class="collision" mesh="ring_collision_30" />
171170
<geom class="collision" mesh="ring_collision_31" />
172171
<geom class="collision" mesh="ring_collision_32" />
172+
<body name="ar_marker_0" pos="-0.09 -0.09 .132" quat="1 0 0 0">
173+
<geom
174+
type="box"
175+
size="0.04 0.04 0.002"
176+
rgba="1 1 1 1"
177+
material="ar_marker_0"/>
178+
</body>
179+
<body name="ar_marker_1" pos="0.09 0.09 .132" quat="1 0 0 0">
180+
<geom
181+
type="box"
182+
size="0.04 0.04 0.002"
183+
rgba="1 1 1 1"
184+
material="ar_marker_1"/>
185+
</body>
186+
<body name="ar_marker_2" pos="-0.09 0.09 .132" quat="1 0 0 0">
187+
<geom
188+
type="box"
189+
size="0.04 0.04 0.002"
190+
rgba="1 1 1 1"
191+
material="ar_marker_2"/>
192+
</body>
193+
<body name="ar_marker_3" pos="0.09 -0.09 .132" quat="1 0 0 0">
194+
<geom
195+
type="box"
196+
size="0.04 0.04 0.002"
197+
rgba="1 1 1 1"
198+
material="ar_marker_3"/>
199+
</body>
173200
</body>
174201
<body name="gen3_7dof" pos="0 0 0" quat="1 0 0 0">
175202
<include file="gen3_7dof_body.xml"/>
@@ -201,7 +228,7 @@
201228
0 0 0 0 0 0 0 0"
202229
/>
203230
<key
204-
name="view_tag"
231+
name="moving_satellite"
205232
qpos="
206233
1 0 0.5 0.7071 0 -0.7071 0
207234
0 -0.5236 0 2.3562 0 -0.2618 -1.5708 0

src/site_configs/picknik_kinova_satellite_sim/launch/36h11.launch.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ launch:
1515
namespace: apriltag
1616
remap:
1717
- from: /apriltag/image_rect
18-
to: /wrist_camera/color
19-
# to: /scene_camera/color
18+
to: /scene_camera/color
2019
- from: /apriltag/camera_info
21-
to: /wrist_camera/camera_info
22-
# to: /scene_camera/camera_info
20+
to: /scene_camera/camera_info
2321
param:
2422
- from: $(find-pkg-share picknik_kinova_satellite_sim)/launch/tags_36h11.yaml
2523
extra_arg:

src/site_configs/picknik_kinova_satellite_sim/launch/fuse.launch.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,22 @@ def generate_launch_description():
4242
Node(
4343
package="tf2_ros",
4444
executable="static_transform_publisher",
45-
arguments=["0.15", "-0.15", "0", "0", "0", "0", "satellite_tag_0", "target_frame_satellite_tag_0"],
45+
arguments=["-0.09", "-0.09", "0", "0", "0", "0", "satellite_tag_0", "target_frame_satellite_tag_0"],
46+
),
47+
Node(
48+
package="tf2_ros",
49+
executable="static_transform_publisher",
50+
arguments=["0.09", "0.09", "0", "0", "0", "0", "satellite_tag_1", "target_frame_satellite_tag_1"],
51+
),
52+
Node(
53+
package="tf2_ros",
54+
executable="static_transform_publisher",
55+
arguments=["-0.09", "0.09", "0", "0", "0", "0", "satellite_tag_2", "target_frame_satellite_tag_2"],
56+
),
57+
Node(
58+
package="tf2_ros",
59+
executable="static_transform_publisher",
60+
arguments=["0.09", "-0.09", "0", "0", "0", "0", "satellite_tag_3", "target_frame_satellite_tag_3"],
4661
),
4762

4863
# run our estimator

src/site_configs/picknik_kinova_satellite_sim/launch/tags_36h11.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
# optional list of tags
1818
tag:
19-
ids: [5] # tag ID
20-
frames: [satellite_tag_0] # optional frame name
21-
sizes: [0.051] # optional tag-specific edge size
19+
ids: [0, 1, 2, 3] # tag ID
20+
frames: [satellite_tag_0, satellite_tag_1, satellite_tag_2, satellite_tag_3] # optional frame name
21+
sizes: [0.064, 0.064, 0.064, 0.064] # optional tag-specific edge size

src/site_configs/picknik_kinova_satellite_sim/waypoints/waypoints.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,49 @@
122122
twist: []
123123
wrench: []
124124
name: Home
125+
- description: ''
126+
favorite: false
127+
joint_group_names:
128+
- gripper
129+
- manipulator
130+
joint_state:
131+
effort: []
132+
header:
133+
frame_id: ''
134+
stamp:
135+
nanosec: 0
136+
sec: 0
137+
name:
138+
- robotiq_85_left_knuckle_joint
139+
- robotiq_85_left_finger_joint
140+
- robotiq_85_right_finger_joint
141+
- joint_1
142+
- joint_2
143+
- joint_3
144+
- joint_4
145+
- joint_5
146+
- joint_6
147+
- joint_7
148+
position:
149+
- 0.002603373347255934
150+
- 0.00014645411016043903
151+
- 0.00014645426688290016
152+
- 0.09425935592481213
153+
- 0.021586867333101556
154+
- -0.17035126324683006
155+
- 2.3180565133500926
156+
- -0.013744056148720065
157+
- -0.7381075423563572
158+
- -1.512343082000213
159+
velocity: []
160+
multi_dof_joint_state:
161+
header:
162+
frame_id: ''
163+
stamp:
164+
nanosec: 0
165+
sec: 0
166+
joint_names: []
167+
transforms: []
168+
twist: []
169+
wrench: []
170+
name: home2

0 commit comments

Comments
 (0)