Skip to content

c_api and julia wrapper #17

Open
HiroIshida wants to merge 4 commits intomasterfrom
add_capi_for_julia
Open

c_api and julia wrapper #17
HiroIshida wants to merge 4 commits intomasterfrom
add_capi_for_julia

Conversation

@HiroIshida
Copy link
Copy Markdown
Owner

@HiroIshida HiroIshida commented Dec 9, 2020

comparison with corresponding python script:
julia : 1.15 [sec]
python: 3.23 [sec]

import _tinyfk as tinyfk
fksolver = tinyfk.RobotModel("../data/fetch_description/fetch.urdf")
link_names = [
    "l_gripper_finger_link", 
    "r_gripper_finger_link", 
    "wrist_flex_link",
    "wrist_roll_link",
    "shoulder_lift_link",
    "upperarm_roll_link"]

joint_names = [
    "torso_lift_joint",
    "shoulder_pan_joint",
    "shoulder_lift_joint",
    "upperarm_roll_joint",
    "elbow_flex_joint",
    "forearm_roll_joint",
    "wrist_flex_joint",
    "wrist_roll_joint"]

av = [-0.4]*8
av_seq = [av]

joint_ids = fksolver.get_joint_ids(joint_names)
link_ids = fksolver.get_link_ids(link_names)

# returining poses and jacobian 
rot_also = False
base_also = False
import time 
ts = time.time()
for i in range(1000000):
    P, J = fksolver.solve_forward_kinematics(av_seq, link_ids, joint_ids, 
            rot_also, base_also, False)
print(time.time() - ts)

@HiroIshida HiroIshida force-pushed the master branch 3 times, most recently from 46df107 to 9a9f900 Compare December 13, 2020 19:12
@HiroIshida HiroIshida force-pushed the master branch 3 times, most recently from aa53334 to b95e6e6 Compare May 30, 2022 08:45
@HiroIshida HiroIshida force-pushed the master branch 2 times, most recently from 89ac881 to b741e4b Compare November 3, 2022 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant