Skip to content

wrong visualization #23

@calx-git

Description

@calx-git

Thanks for this great tool.

However, when I try to visualize my chain, it does not work well. Would you please help me find the reason? My code is shown below:

import tinyik
import numpy as np

left_arm_idx = [15, 16, 17]
left_arm_bone1 = source_joints[ left_arm_idx[1],: ] - source_joints[ left_arm_idx[0],: ]
left_arm_bone2 = source_joints[ left_arm_idx[2],: ] - source_joints[ left_arm_idx[1],: ]

leftarm = tinyik.Actuator(['x','y','z', left_arm_bone1, 'x','y','z', left_arm_bone2])
tinyik.visualize(leftarm)

The values of the two bones are:

left_arm_bone1 = [-0.77607921, 2.00528251, -3.82166443]
left_arm_bone2 = [-4.19961586, -0.31558648, 0.79598167]

The visualization is not as expected. The direction of the bone is wrong.

Visualization of two bones

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions