Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark iii dvrk #17

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c6f657f
played with the demo
Feb 7, 2018
4dd2308
fixed primatic offsets
Feb 7, 2018
394ad00
testing Jacobian IK addon
Feb 8, 2018
002a85e
fixed Jacobian IK
Feb 9, 2018
fa12a32
adding fwd test main
Feb 13, 2018
694704e
corrected prismatic offsets
Feb 13, 2018
8da39b4
good magic numbers in the fwd kinematics
Feb 14, 2018
302e144
fixed all DH2 params
Feb 19, 2018
8abe837
fixing the .99 factor
Feb 20, 2018
f40c251
updates from 20180319
Mar 19, 2018
37ec0f2
slight changes
Apr 10, 2018
e6688a5
fixed the frozen bug
Apr 10, 2018
0701608
cleanup
Apr 10, 2018
89c1483
added wrapper that conforms to old format
Apr 10, 2018
b3d4dff
removed adjustments
May 19, 2018
2f95eac
removed the couts
Jun 4, 2018
d0d3457
modified from surgical computer
Jun 18, 2018
3a94eae
fixed small bug
Jun 18, 2018
7c18953
PSM2 dh params
Jun 18, 2018
14582c2
fixing bugs
Jul 13, 2018
34a0501
adding tests
Jul 14, 2018
b9fcaab
added debugging markers
Jul 15, 2018
990a5ea
starting to write Mk2
Jul 16, 2018
5eb5b53
testing..
Jul 16, 2018
684f6c8
a few lines
Jul 16, 2018
f79f250
major refit
Jul 19, 2018
c4d45c8
changed test
Jul 20, 2018
e1d9526
added IK tasks
Jul 20, 2018
8d3a356
some changes
Jul 20, 2018
8436229
debugging
Jul 20, 2018
c8cc10b
added new test
Jul 21, 2018
cbc121f
added test and completed debugging
Jul 22, 2018
3681782
added adjustments for frozen fncs
Jul 23, 2018
f7b84ed
added from tests
Jul 23, 2018
23cbf5e
added more printouts
Jul 23, 2018
2e09da3
dir change
Jul 24, 2018
a6c8e38
removed useless lines
Jul 25, 2018
e664372
added new yaml
Jul 30, 2018
0f2f5ba
added new tests
Jul 30, 2018
494d03d
tested new DH fix
Aug 1, 2018
50729bc
added new yaml
Aug 1, 2018
4d9defa
modified psm1 dh
Aug 6, 2018
8551a3e
psm2 yaml
Aug 11, 2018
a1b578e
added j2 scale factor
Aug 11, 2018
82c1fed
updated from latest test
Aug 13, 2018
2d45103
added joint 1 scale factor and new test result
Aug 13, 2018
eba0225
added from home
Aug 22, 2018
dfb689a
MK 3 upgrades
Oct 29, 2018
5893b9d
MKIII calibration
Oct 29, 2018
858f7b7
testing DH 5 params
Nov 5, 2018
e17b2b8
fixed kinematics issues
Nov 12, 2018
4409429
corrected yaml
Nov 13, 2018
ef3f52b
corrected psm2 yaml
Nov 13, 2018
d1784ff
added new calibration results
Nov 19, 2018
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
67 changes: 64 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ endif()

add_definitions(${EIGEN_DEFINITIONS})

find_package(catkin REQUIRED COMPONENTS roscpp roslint tf tf2 tf2_eigen)
find_package(yaml-cpp REQUIRED)

find_package(catkin REQUIRED COMPONENTS roscpp roslib roslint tf tf2 tf2_eigen)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")

Expand All @@ -30,12 +32,13 @@ include_directories(
${catkin_INCLUDE_DIRS}
${catkin_INCLUDES}
${Eigen3_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIRS}
)

catkin_package(
DEPENDS ${Eigen3_DEP}
LIBRARIES davinci_kinematics
CATKIN_DEPENDS roscpp
CATKIN_DEPENDS roscpp roslib
INCLUDE_DIRS include ${EIGEN3_INCLUDE_DIRS}
)

Expand All @@ -46,6 +49,7 @@ add_library(davinci_kinematics src/davinci_fwd_kinematics.cpp src/davinci_inv_ki

target_link_libraries(davinci_kinematics
${catkin_LIBRARIES}
${YAML_CPP_LIBRARIES}
davinci_kinematic_definitions
)

Expand Down Expand Up @@ -77,6 +81,63 @@ target_link_libraries(ik_demo
${catkin_LIBRARIES}
)

add_executable(refined_ik_demo examples/davinci_ik_refined_test.cpp)

target_link_libraries(refined_ik_demo
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)


add_executable(davinci_fwd_fix_trial examples/davinci_fwd_fix_trial.cpp)

target_link_libraries(davinci_fwd_fix_trial
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)

add_executable(test_dh_params examples/test_dh_params.cpp)

target_link_libraries(test_dh_params
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)

add_executable(test_new_ik_err examples/test_new_ik_err.cpp)

target_link_libraries(test_new_ik_err
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)

add_executable(psm_intrinsic_calibration_auxiliary examples/psm_intrinsic_calibration_auxiliary.cpp)

target_link_libraries(psm_intrinsic_calibration_auxiliary
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)

add_executable(test_dh_345 examples/test_dh_345.cpp)

target_link_libraries(test_dh_345
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)

add_executable(davinci_jacobian_test_rn examples/davinci_jacobian_test_rn.cpp)

target_link_libraries(davinci_jacobian_test_rn
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)


file(GLOB_RECURSE SRC_FILES_CPP src/*.cpp)
file(GLOB_RECURSE TEST_FILES_CPP test/*.cpp)
Expand All @@ -95,4 +156,4 @@ target_link_libraries(full_kinematics_test
davinci_kinematics
davinci_kinematic_definitions
${catkin_LIBRARIES}
)
)
49 changes: 49 additions & 0 deletions config/20181118/psm1_dh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# DH PARAMETER RECOMMENDATION

# 04
# @Date: 20180813
# @Data group count: 1
# @Base frame z: anti-parallel to gravity.
# @Polaris z: parallel to base frame y.
# @Notes: Only did one calibration round to get the result. Note that the d2 and d3 changed rather significantly.
# @Quality test result: 0.94 mm

# ---
# DH_0 TO DH_1 FRAME
theta_1: 3.141593
alpha_1: -1.563196
a_1: 0.005266
d_1: 0.000000

# DH_1 TO DH_2 FRAME
theta_2: -1.560790
alpha_2: 1.560804
a_2: 0.000855
d_2: -0.002970

# DH_2 TO DH_3 FRAME
theta_3: 0.000000
alpha_3: 0.000000
a_3: 0.000000
d_3: -0.008697

# DH_3 TO DH_4 FRAME
theta_4: 0.083931
alpha_4: -1.557303
a_4: 0.000533
d_4: -0.000116

# DH_4 TO DH_5 FRAME
theta_5: -1.641617
alpha_5: -1.483756
a_5: 0.008697
d_5: -0.000070

# Scale Factors
j1_scale_factor: 1.0022
j2_scale_factor: 0.978
j3_scale_factor: 0.988530




38 changes: 38 additions & 0 deletions config/20181118/psm2_dh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 02
# Note: Average result from 20180809 Group. The passive joint not tilted.
# ---
# DH_0 TO DH_1 FRAME
theta_1: 3.141593
alpha_1: -1.565842
a_1: 0.003997
d_1: 0.000000

# DH_1 TO DH_2 FRAME
theta_2: 1.596102
alpha_2: -1.576262
a_2: 0.000215
d_2: 0.001068

# DH_2 TO DH_3 FRAME
theta_3: 0.000000
alpha_3: 0.000000
a_3: 0.000000
d_3: -0.007804

# DH_3 TO DH_4 FRAME
theta_4: -3.051239
alpha_4: -1.559642
a_4: 0.000204
d_4: 0.000002

# DH_4 TO DH_5 FRAME
theta_5: -1.619887
alpha_5: -1.480664
a_5: 0.008285
d_5: 0.000054


# Scale Factors
j1_scale_factor: 1.0
j2_scale_factor: 0.9783
j3_scale_factor: 0.989151
75 changes: 75 additions & 0 deletions config/dh_info_format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# DH PARAMETER RECOMMENDATION

# PMS1/04 (number in archive folder)
# @Date: 20180813
# @Data group count: 1
# @Base frame z: anti-parallel to gravity.
# @Polaris z: parallel to base frame y.
# @Notes: Only did one calibration round to get the result. Note that the d2 and d3 changed rather significantly.
# @Quality test result: 0.94 mm

# ---
# DH_0 TO DH_1 FRAME
theta_1: 3.141593
alpha_1: -1.563155
a_1: 0.005612
d_1: 0.000000

# DH_1 TO DH_2 FRAME
theta_2: -1.569594
alpha_2: 1.560272
a_2: 0.000935
d_2: -0.002785

# DH_2 TO DH_3 FRAME
theta_3: 0.000000
alpha_3: 0.000000
a_3: 0.000000
d_3: -0.007221

# DH_3 TO DH_4 FRAME
theta_4: 0.097740
alpha_4: -1.556479
a_4: 0.000353
d_4: -0.000189

# DH_4 TO DH_5 FRAME
theta_5: -1.639551
alpha_5: -1.475644
a_5: 0.008613
d_5: -0.000082

# Scale Factors
j1_scale_factor: 1.0022
j2_scale_factor: 0.98
j3_scale_factor: 0.988877

# DH_3 TO DH_4 FRAME
#theta_4: 3.1415926
#alpha_4: 1.570796
#a_4: 0.0
#d_4: 0.0

# DH_4 TO DH_5 FRAME
#theta_5: 1.570796
#alpha_5: -1.570796
#a_5: 0.0091
#d_5: 0.0


# DH_3 TO DH_4 FRAME
#theta_4: 0.097740
#alpha_4: -1.556479
#a_4: 0.000353
#d_4: -0.000189

# DH_4 TO DH_5 FRAME
#theta_5: -1.570796
#alpha_5: -1.570796
#a_5: 0.00
#d_5: -0.000082

#j1_scalloe_factor: 1
#j2_scale_factor: 1
#j3_scale_factor: 1

40 changes: 40 additions & 0 deletions config/psm1_dh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# DH PARAMETER RECOMMENDATION

# @Date: 20181118

# ---
# DH_0 TO DH_1 FRAME
theta_1: 3.141593
alpha_1: -1.562748
a_1: 0.005491
d_1: 0.000000

# DH_1 TO DH_2 FRAME
theta_2: -1.571575
alpha_2: 1.561116
a_2: 0.001086
d_2: -0.003000

# DH_2 TO DH_3 FRAME
theta_3: 0.000000
alpha_3: 0.000000
a_3: 0.000000
d_3: -0.008534

# DH_3 TO DH_4 FRAME
theta_4: 0.075072
alpha_4: -1.561300
a_4: 0.000477
d_4: -0.000292

# DH_4 TO DH_5 FRAME
theta_5: -1.617966
alpha_5: -1.476553
a_5: 0.008543
d_5: -0.000179

# Scale Factors
j1_scale_factor: 1.00
j2_scale_factor: 0.98
j3_scale_factor: 0.99

Loading