Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
8d18532
es cameras
umroverPerception May 30, 2025
20b9eed
Improve backup state
umroverPerception May 30, 2025
68b68b1
Merge branch 'urc-25' of github.com:umrover/mrover-ros2 into urc-25
umroverPerception May 30, 2025
9875d2e
Update launch files
umroverPerception May 30, 2025
e4e99b4
es/auton config changes
umroverPerception May 31, 2025
eaf0e08
Add aruco code
umroverPerception Aug 9, 2025
8de78f8
Roll back
umroverPerception Aug 9, 2025
719a99c
Merge branch 'main' into urc-25
jbrhm Aug 30, 2025
1132d13
updated from preliminary review
jbrhm Aug 31, 2025
601b230
style.sh
jbrhm Aug 31, 2025
0b43769
added rtcm msgs
jbrhm Aug 31, 2025
0ec8d12
updating CI
jbrhm Sep 1, 2025
3c9d866
builds locally
jbrhm Sep 1, 2025
d992a7f
added mrover group for localization gps
jbrhm Sep 1, 2025
5aad48c
Merge branch 'main' into urc-25
jbrhm Sep 5, 2025
a5b6c7d
style ??
jbrhm Sep 5, 2025
f619214
removed merge conflicts from .gitignore
jbrhm Sep 5, 2025
3763e7f
simulator now launches
jbrhm Sep 8, 2025
86ce181
no teleop errors
jbrhm Sep 8, 2025
b0bad63
teleop deprecated
jbrhm Sep 8, 2025
0efda22
working frontend
jbrhm Sep 8, 2025
18a8bc9
navigating to a point in the sim
jbrhm Sep 9, 2025
ddf5280
updated coords
jbrhm Sep 16, 2025
11235eb
Urc 25 teleop fix (#116)
kevinjin0420 Sep 18, 2025
339f74b
typo fix
SiddhantRBohra Sep 19, 2025
ac27300
cost map fixed by setting resolution
MyCabbages4 Sep 20, 2025
b586be2
uncommited xacro files
MyCabbages4 Sep 20, 2025
253576d
fixed auton waypoint list not being saved after refresh
thealvinjg Sep 21, 2025
3e427e6
temp fix
jbrhm Sep 26, 2025
0b29d39
Merge branch 'main' into nlj/arm-controller
alisonryckman Oct 21, 2025
c2362a2
Merging main into keyboard-detector
MyCabbages4 Oct 26, 2025
e334918
updated sim pathing
jbrhm Oct 28, 2025
8220e06
Menu to select map
jbrhm Oct 28, 2025
6b67a97
initial commit
MyCabbages4 Oct 30, 2025
79a9180
yaw skeleton code
MyCabbages4 Oct 30, 2025
2c3a223
prints the objects inside of the ytaml file
jbrhm Oct 30, 2025
137b4da
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
MyCabbages4 Oct 30, 2025
a486d7f
loading from external yaml via yaml-cpp
jbrhm Oct 31, 2025
ef40db9
works in sim
jbrhm Oct 31, 2025
9e28434
Fix style
nevenjohnson Nov 2, 2025
da35f7d
Merge branch 'main' into nlj/arm-controller
nevenjohnson Nov 2, 2025
75455bb
Fix python style
nevenjohnson Nov 2, 2025
69a2353
Fix mypy issues
nevenjohnson Nov 2, 2025
310b378
camera in sim
jbrhm Nov 2, 2025
0b5f9df
test map
jbrhm Nov 2, 2025
9adb3a2
added lander into the map
jbrhm Nov 2, 2025
25be3b8
style
jbrhm Nov 2, 2025
9fcf5fb
better camera angle
jbrhm Nov 2, 2025
5742cae
urdf/textures/marker0.png: convert to Git LFS
jbrhm Nov 2, 2025
87a450d
git lfs
jbrhm Nov 2, 2025
0d2a201
gitignore blend1 files
jbrhm Nov 2, 2025
fe880c0
Merge branch 'JRA/sim-maps' into percep/keyboard_typing
jbrhm Nov 2, 2025
8e8a00a
topic names
MyCabbages4 Nov 2, 2025
a2b97b4
started work on keyboard typing
calvinbokchoy Nov 2, 2025
7393118
last valid pos
jbrhm Nov 5, 2025
b35f4ac
Pose estimation code finished, untested, started work on kalman filter
calvinbokchoy Nov 5, 2025
060c673
add initialization for kalmanFilter
JamesFriggens Nov 5, 2025
fbd825d
added fallback pos
ejhon1116 Nov 5, 2025
077fe8d
added fallback behavior to ik timeout
ejhon1116 Nov 5, 2025
1075e0c
style fix
ejhon1116 Nov 5, 2025
499a7d6
keyboard typing is building
calvinbokchoy Nov 5, 2025
40cba25
keyboard typing is building
calvinbokchoy Nov 5, 2025
44e9abf
removed accidental additions
calvinbokchoy Nov 6, 2025
2a24ff1
implimented kalman filter
billbhong Nov 7, 2025
83958b0
pose estimation working
calvinbokchoy Nov 7, 2025
997df51
added appropriate headers
ejhon1116 Nov 7, 2025
87e4e3f
added action dependency:
ejhon1116 Nov 7, 2025
296453d
fixed this?
ejhon1116 Nov 7, 2025
4f2d158
merged with compile commands fix
ejhon1116 Nov 7, 2025
8a017d0
setup typing 'ik' action server and functionality
ejhon1116 Nov 7, 2025
3239eb6
initial commit
MyCabbages4 Nov 7, 2025
999ad42
add action
ejhon1116 Nov 7, 2025
7fd4f28
removed mutex
ejhon1116 Nov 7, 2025
5083ce3
compile flags added
MyCabbages4 Nov 8, 2025
3b6b97e
merge
calvinbokchoy Nov 11, 2025
42b24ca
debugging
calvinbokchoy Nov 12, 2025
b470bbf
fix camera matrix constants
JamesFriggens Nov 12, 2025
0844b78
small changes
MyCabbages4 Nov 13, 2025
aa0708c
changed to be based on typing origin
ejhon1116 Nov 13, 2025
53fd85d
ignore linting change
billbhong Nov 14, 2025
be3d0e3
implemented kalman filter
billbhong Nov 14, 2025
fdeb5a2
convert angles to be 0-360
JamesFriggens Nov 14, 2025
f60c125
correct sizing in blender
jbrhm Nov 5, 2025
8b73da9
moved camera back to join e
jbrhm Nov 6, 2025
a2b0dc0
reformatted input box
jbrhm Nov 6, 2025
0990dd0
remove unecessary
jbrhm Nov 6, 2025
087ef5a
remove ar tag generator
jbrhm Nov 6, 2025
8ea1ba6
removed IsDefined
jbrhm Nov 6, 2025
c94b745
decimated
jbrhm Nov 6, 2025
384e738
updated the tags to have different ids on the lander
jbrhm Nov 13, 2025
164e3b5
fixed subpix breaking pose estimation, added gaussian blur and equali…
calvinbokchoy Nov 14, 2025
76eb7ce
added catch for valid tag offsets
billbhong Nov 16, 2025
e9e1701
update lander aruco tags
jbrhm Nov 16, 2025
4b675ba
sim fix for the arm sagging issue
ejhon1116 Nov 20, 2025
454afed
style
ejhon1116 Nov 20, 2025
686f548
merged in keyboard branch
MyCabbages4 Nov 20, 2025
2531976
fixed kalman filter/tag offset
billbhong Nov 21, 2025
0b9b39b
updated tag offset comments
billbhong Nov 21, 2025
872a603
debugging pose estimation
calvinbokchoy Nov 21, 2025
f871287
merge
calvinbokchoy Nov 21, 2025
d349bca
updated offsets
billbhong Nov 21, 2025
007be7e
readded accidentally deleted code
calvinbokchoy Nov 21, 2025
6be7903
fixed some offet bugs
calvinbokchoy Nov 23, 2025
eac3efc
add csv logging for x,y,z,roll,pitch,yaw (intended use is to then cop…
JamesFriggens Nov 23, 2025
74275d5
merge (TOOK FOREVER TO FIND MISSING CURLY BRACE)
JamesFriggens Nov 23, 2025
e59f9fe
merging
calvinbokchoy Dec 2, 2025
0a09d93
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
calvinbokchoy Dec 2, 2025
31a0ba5
made detection better
calvinbokchoy Dec 4, 2025
a909827
changed tag offset method
billbhong Dec 4, 2025
9513f72
merging
calvinbokchoy Dec 5, 2025
fcf05ae
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
calvinbokchoy Dec 5, 2025
f970ba2
tuned kalman filter
billbhong Dec 5, 2025
f5ba33a
merging
calvinbokchoy Dec 5, 2025
0956e41
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
calvinbokchoy Dec 5, 2025
ef83c0e
add ik publisher and function for publishing ik message for arm control
JamesFriggens Dec 5, 2025
b63fed9
merge
JamesFriggens Dec 5, 2025
cf618e3
add toggle for pose logging (press the r key when you are on the gray…
JamesFriggens Dec 7, 2025
f815f92
updated camera to key transform (untested)
billbhong Dec 7, 2025
b128072
merged with main, sim is cooked (speciically lander)
calvinbokchoy Dec 7, 2025
96f98f1
reverted to old lander mesh as new merge did not have tag offset, twe…
calvinbokchoy Dec 8, 2025
c4892bc
Merge branch 'percep/keyboard_typing' into kb/keyboard-typing
MyCabbages4 Dec 31, 2025
fe4b79c
updated to match percep
MyCabbages4 Dec 31, 2025
94dc918
added nav action
MyCabbages4 Dec 31, 2025
aae31d8
added action server/client infra
MyCabbages4 Jan 2, 2026
44b5877
added test action server
MyCabbages4 Jan 2, 2026
a1caf22
renamed server to follow icd
MyCabbages4 Jan 2, 2026
2f7707f
yaw callback control and some comments
MyCabbages4 Jan 2, 2026
80732ce
added cancel logic
MyCabbages4 Jan 2, 2026
7e67114
nav cancel logic
MyCabbages4 Jan 2, 2026
156d1d5
first commit
a3801749 Jan 13, 2026
8106e0f
Merge branch 'main' into percep/keyboard_typing
JamesFriggens Jan 13, 2026
dde518e
Add basic target position method
githubAnish Jan 14, 2026
5625572
first commit
a3801749 Jan 14, 2026
40dfffe
some more edits
a3801749 Jan 14, 2026
2fe40e7
reconfigured action server
MyCabbages4 Jan 14, 2026
e7db74b
V2...:(
a3801749 Jan 15, 2026
4dd667e
add keyboard hashmap and z key transformation vector
JamesFriggens Jan 16, 2026
c87e4ae
started work on pose to se3
calvinbokchoy Jan 16, 2026
f7d915a
Merge remote-tracking branch 'origin/kb/keyboard-typing' into percep/…
calvinbokchoy Jan 16, 2026
70873aa
Two carrot pose impl
githubAnish Jan 16, 2026
581bb4d
fixes
calvinbokchoy Jan 16, 2026
cb60374
more changes
githubAnish Jan 16, 2026
dafc887
V3 - yet to be fixed
a3801749 Jan 17, 2026
ccd3f73
transforms published to tree, started work on moving the arm
calvinbokchoy Jan 18, 2026
2dfd685
V3 - needs more fixing
a3801749 Jan 18, 2026
bd2e60d
First commit
a3801749 Jan 18, 2026
a9acd6e
First version
a3801749 Jan 20, 2026
9fbaa37
Second version
a3801749 Jan 20, 2026
72ddc20
second version, some variable constant changes
a3801749 Jan 20, 2026
17564db
third version
a3801749 Jan 21, 2026
b9aeec5
version with carrot movement restriction
a3801749 Jan 22, 2026
3bcafc0
arm alignment works, yaw publishing works
calvinbokchoy Jan 22, 2026
e09d079
modified transforms
billbhong Jan 23, 2026
4d0c726
added camera transform to current pose, cleaned up some stuff, disabl…
calvinbokchoy Jan 23, 2026
e5369c9
added constants to cmake list, cleaned up stuff, started work on publ…
calvinbokchoy Jan 24, 2026
2a68a5a
add z-key keyboard alignment from bottom left tag. Fix z-key transform
JamesFriggens Jan 24, 2026
9bc6805
version 4 - close, but not close enough :(
a3801749 Jan 25, 2026
9d6a9b2
transform code for z also added, added dot to debug image for better …
calvinbokchoy Jan 25, 2026
a077f4d
added delta to keys in launch code
billbhong Jan 25, 2026
98a0f84
z alignment working, made debug picture colored for better debugging
calvinbokchoy Jan 25, 2026
636b402
version 5 - first working implementation
a3801749 Jan 27, 2026
acd6e54
Merge remote-tracking branch 'origin/ej/typing-ik' into percep/keyboa…
calvinbokchoy Jan 28, 2026
ea443eb
fixed get_bad_optional issue, fine tuned x direction drift when going…
a3801749 Jan 28, 2026
b30ebfc
added extern to hpp, changed transform to use arm_gripper_link
calvinbokchoy Jan 29, 2026
ba8a236
Merge remote-tracking branch 'origin/main' into ej/arm-fallback-fix
ejhon1116 Jan 30, 2026
a5a2fdd
changed ee_pos/vel to ik_pos/vel
ejhon1116 Jan 30, 2026
949e199
add gripper rotation function for keyboard typing
JamesFriggens Jan 31, 2026
5e47610
fixed offset logic
calvinbokchoy Jan 31, 2026
ffd2914
limit changes and icd changes
ejhon1116 Jan 31, 2026
64535e6
seems to be working
ejhon1116 Jan 31, 2026
a1c882c
Merge remote-tracking branch 'origin/ej/new-arm-control' into percep/…
calvinbokchoy Feb 1, 2026
a698776
arm no longer limp, starting debugging action server
calvinbokchoy Feb 1, 2026
629a629
typing sequence working
calvinbokchoy Feb 1, 2026
e222107
cleaned imports in pch.hpp and switched back up key from ',' to 'k' i…
JamesFriggens Feb 3, 2026
69c7089
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
JamesFriggens Feb 3, 2026
af9eba0
fixed gripper logic
calvinbokchoy Feb 5, 2026
457b94a
transform fix
calvinbokchoy Feb 6, 2026
1f8eda4
added alignment, rotation, and service call to handle_accepted
calvinbokchoy Feb 6, 2026
98f1442
Co-authored-by: Calvin <eternaks@users.noreply.github.com>
JamesFriggens Feb 10, 2026
8a961c1
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
JamesFriggens Feb 10, 2026
9f3d6b5
uncooked rotation
calvinbokchoy Feb 11, 2026
0aa4b89
started work on aruco library
calvinbokchoy Feb 17, 2026
0d805b9
ditching aruco library
calvinbokchoy Feb 17, 2026
40a6a1a
implemented the markley method
calvinbokchoy Feb 18, 2026
a563567
started work on adding parameters for node instead of hardcoded const…
calvinbokchoy Mar 10, 2026
2146373
started work on vmf
calvinbokchoy Mar 12, 2026
6e58827
constants fix
calvinbokchoy Mar 12, 2026
3f72a3d
complete tvec sum for vectorMedianFilter
JamesFriggens Mar 12, 2026
2c19242
implimented median rvec filter
billbhong Mar 12, 2026
f2f1836
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
JamesFriggens Mar 12, 2026
91480ee
fixed median filter rvec
billbhong Mar 12, 2026
9546bd1
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
JamesFriggens Mar 12, 2026
864c73a
complete rvec and tvec vectorMedianFilter and find min sum of the two
JamesFriggens Mar 12, 2026
01ca49f
merging
calvinbokchoy Mar 12, 2026
7cad497
Merge branch 'percep/keyboard_typing' of github.com:umrover/mrover-ro…
calvinbokchoy Mar 12, 2026
f6afeca
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
MyCabbages4 Mar 15, 2026
1eb347a
icd changes
ejhon1116 Mar 16, 2026
e9c54f4
fixed initial arm position
ejhon1116 Mar 17, 2026
c044fb9
merge main
JamesFriggens Mar 26, 2026
ff60bdd
added pusher service and wait at target:
ejhon1116 Mar 30, 2026
f967b9f
debug typing script added
ejhon1116 Mar 31, 2026
e01494a
removed unecessary includes
ejhon1116 Mar 31, 2026
9848346
added pusher and wait
ejhon1116 Mar 31, 2026
e653163
removed unecessary diffs
ejhon1116 Mar 31, 2026
3f433d5
removed unecessary diffs in hpp
ejhon1116 Mar 31, 2026
51977b0
Merge remote-tracking branch 'origin/main' into ej/typing-ik
ejhon1116 Mar 31, 2026
17c428d
merging testing branch
calvinbokchoy Apr 5, 2026
41ed01e
Merge remote-tracking branch 'origin/main' into ej/typing-ik
ejhon1116 Apr 7, 2026
fa644e4
typing_ik -> typing_pos
ejhon1116 Apr 7, 2026
525954f
fix formatting
ejhon1116 Apr 7, 2026
e03207b
removed [[maybe_unused]]
ejhon1116 Apr 7, 2026
948a187
pub fk arm_fk links
ejhon1116 Apr 7, 2026
94ce6cb
working in sim
calvinbokchoy Apr 7, 2026
63ae569
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
calvinbokchoy Apr 8, 2026
9b95cae
percep testing 4-7-26
danielryckman Apr 8, 2026
c5f0505
made finger_cam accurate in sim, arm_controller fixes
calvinbokchoy Apr 9, 2026
9f90363
transform fixes
calvinbokchoy Apr 14, 2026
c391eca
Merge remote-tracking branch 'origin/main' into calv/typing-testing
calvinbokchoy Apr 14, 2026
60f3aed
Merge branch 'calv/typing-testing' into percep/keyboard_typing
calvinbokchoy Apr 14, 2026
563f22e
accounted for roll in key transforms
calvinbokchoy Apr 16, 2026
3533be2
Merge remote-tracking branch 'origin/main' into calv/typing-testing
calvinbokchoy Apr 16, 2026
c8606f0
Merge branch 'calv/typing-testing' into percep/keyboard_typing
calvinbokchoy Apr 16, 2026
fb8da01
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
calvinbokchoy Apr 16, 2026
891d22f
First version done
a3801749 Apr 16, 2026
14efb0a
First push may have been bad?
a3801749 Apr 16, 2026
99173b5
style fixes
calvinbokchoy Apr 16, 2026
80e7e3d
extensions.json fix
calvinbokchoy Apr 17, 2026
fa838cd
Merge remote-tracking branch 'origin/ad/arm_transform' into ej/typing-ik
ejhon1116 Apr 17, 2026
ec4d046
added transforms
ejhon1116 Apr 17, 2026
0064653
Merge remote-tracking branch 'origin/ej/typing-ik' into percep/keyboa…
calvinbokchoy Apr 19, 2026
20f264d
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
calvinbokchoy Apr 19, 2026
f6721c5
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
calvinbokchoy Apr 19, 2026
feb884b
fixed cmakelist, moved typing node to jetson arm, deleted useless files,
calvinbokchoy Apr 24, 2026
6afaf74
removed starter project solutions, reset simulator.hpp to main
calvinbokchoy Apr 24, 2026
5319129
restored wrong simulator.hpp
calvinbokchoy Apr 24, 2026
f322e09
removed arm_controller changes
calvinbokchoy Apr 24, 2026
d19d8a1
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
calvinbokchoy Apr 24, 2026
09f0f32
style fixes, cleaned up keyboard typing code
calvinbokchoy Apr 24, 2026
467f88b
fixed gitignore, deleted unused typing deltas
calvinbokchoy Apr 24, 2026
b629e1e
removed typing delta include
calvinbokchoy Apr 24, 2026
acb7ce6
minor fixes
calvinbokchoy Apr 25, 2026
0712b27
removed constants.hpp
calvinbokchoy Apr 25, 2026
2812ca8
renamed yaw topic
calvinbokchoy Apr 25, 2026
4169b71
main merge
MyCabbages4 May 17, 2026
b0b6868
Merge remote-tracking branch 'origin/main' into percep/keyboard_typing
MyCabbages4 May 18, 2026
2f025e6
updated transforms and action server
MyCabbages4 May 18, 2026
69fd17c
style fixes
MyCabbages4 May 18, 2026
c9ac5e6
removed old functions
MyCabbages4 May 18, 2026
b085b5c
merged main
MyCabbages4 May 29, 2026
c17ed66
merge main
danielryckman Sep 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Comment thread
calvinbokchoy marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ state_machine/state_log.txt
data/*.png
data/raw-pano-images

# blender backup files
*.blend1

# Dynamixel Ignores
.catkin_tools/
.dynamixel_sdk/

# Persistent esw mrover_can FetchContent cache (survives a clean build, not tracked)
/.cache/esw/
/.cache/esw/
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Comment thread
calvinbokchoy marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"redhat.vscode-yaml",
"llvm-vs-code-extensions.vscode-clangd",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker"
],
}
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ mrover_link_component(tag_detector lie opencv_core opencv_aruco opencv_imgproc l
mrover_executable_from_component(stereo_tag_detector perception/executables/stereo_tag_detector.cpp tag_detector_component)
mrover_executable_from_component(image_tag_detector perception/executables/image_tag_detector.cpp tag_detector_component)

# Keyboard Typing
mrover_add_component(keyboard_typing perception/keyboard_typing/keyboard_typing.cpp perception/keyboard_typing/pch.hpp KeyboardTypingNode perception/keyboard_typing/constants.hpp)
mrover_ament_component(keyboard_typing rclcpp rclcpp_components tf2 tf2_ros geometry_msgs sensor_msgs)
mrover_link_component(keyboard_typing lie parameter_utils opencv_core opencv_aruco opencv_imgproc opencv_highgui opencv_dnn opencv_calib3d opencv_imgcodecs opencv_video loop_profiler)

mrover_executable_from_component(keyboard_typing perception/executables/keyboard_typing.cpp keyboard_typing_component)

# Cost Map
mrover_add_component(cost_map perception/cost_map/*.cpp perception/cost_map/pch.hpp CostMapNode)
mrover_ament_component(cost_map rclcpp rclcpp_components tf2 tf2_ros)
Expand Down
37 changes: 37 additions & 0 deletions config/keyboard_typing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**:
ros__parameters:
tag_size: 0.02
# Format: [id, x, y, z]

# Distance of each tag to bottom left tag, probably wont be needed but change if necessary
# Will need to change tag id on day of comp
tag_offsets: [
4.0, 0.0, 0.0, 0.0, # Bottom-left
5.0, 0.41407, 0.0, 0.0, # Bottom-right
3.0, 0.41407, 0.183444, 0.0, # Top-left
2.0, 0.0, 0.183444, 0.0 # Top-right
]
min_code_length: 3
max_code_length: 6

camera_matrix: [297.5423204165929, 0.0, 306.51784066632075,
0.0, 295.1006235094907, 247.4880266546329,
0.0, 0.0, 1.0]

# camera_matrix: [294.8447664894051, 0.0, 320.781111263661,
# 0.0, 292.9945007031336, 241.50291271027783,
# 0.0, 0.0, 1.0]

distortion_coefficients: [-0.002013779189917317,
-0.05320314517636387,
-0.0013949346108894896,
0.00023247660995265573,
0.018284177139663432]

# Add vertical and horizontal dist from tag center to keyboard as needed
# vertical z key from keyboard corner = 0.031575
# horizontal z key from keyboard corner 0.05495
z_key_transform: [0.041575, 0.06495, 0.0303784]



4 changes: 4 additions & 0 deletions config/simulator/mars_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ objects:
mars_world:
type: urdf
uri: package://mrover/urdf/world/mars.urdf.xacro
lander:
type: urdf
uri: package://mrover/urdf/world/lander.urdf.xacro
position: [ -5, 2, -0.75 ]
17 changes: 16 additions & 1 deletion launch/jetson_arm.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,25 @@ def generate_launch_description():
output="screen",
)

# keyboard typing node
keyboard_typing_node = Node(
package="mrover",
executable="keyboard_typing",
name="keyboard_typing",
parameters=[Path(get_package_share_directory("mrover"), "config", "keyboard_typing.yaml")],
respawn=False,
)

arm_e_link_to_cam = Node(
package="tf2_ros",
executable="static_transform_publisher",
arguments=["0.02948991", "0", "-0.0456159", "0", "-1.0996", "0", "arm_fk_de", "finger_camera_frame"],
)

launch_localization = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
Path(get_package_share_directory("mrover"), "launch/localization.launch.py").__str__()
)
)

return LaunchDescription([launch_include_jetson_base, arm_hw_bridge_node, cam_container, launch_localization])
return LaunchDescription([launch_include_jetson_base, arm_hw_bridge_node, cam_container, launch_localization, keyboard_typing_node, arm_e_link_to_cam])
36 changes: 36 additions & 0 deletions launch/keyboardtypingtest.launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from pathlib import Path

from ament_index_python import get_package_share_directory

import launch
from launch_ros.actions import Node, LoadComposableNodes
from launch_ros.descriptions import ComposableNode


def generate_launch_description():
# keyboard typing node
keyboard_typing = Node(
package="mrover",
executable="keyboard_typing",
name="keyboard_typing",
parameters=[Path(get_package_share_directory("mrover"), "config", "keyboard_typing.yaml")],
respawn=False,
)

# gripper: [0.16533, 0, 0.059547] # forward, horizontal, vertical
# gripper_pitch: 1.134

# base_link_to_zed = Node(
# package="tf2_ros",
# executable="static_transform_publisher",
# arguments=["0", "0", "1", "0", "0", "0", "1", "base_link", "zed_left_camera_frame"],
# )

# joint DE to camera: [0, 0.03713988, 0.0945642] roll: 0, pitch: 1.134, yaw: 0
arm_e_link_to_cam = Node(
package="tf2_ros",
executable="static_transform_publisher",
arguments=["0.02948991", "0", "-0.0456159", "0", "-1.0996", "0", "arm_fk_de", "finger_camera_frame"],
)

return launch.LaunchDescription([keyboard_typing, arm_e_link_to_cam])
12 changes: 12 additions & 0 deletions perception/executables/keyboard_typing.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <keyboard_typing/keyboard_typing.hpp>

auto main(int argc, char** argv) -> int {
rclcpp::init(argc, argv);
auto keyboardT = std::make_shared<mrover::KeyboardTypingNode>();
rclcpp::executors::SingleThreadedExecutor executor;
executor.add_node(keyboardT);
executor.spin();

rclcpp::shutdown();
return EXIT_SUCCESS;
}
Loading
Loading