GithubHelp home page GithubHelp logo

inverse_kinematics_youtube's Introduction

Inverse_Kinematics_YouTube

inverse_kinematics_youtube's People

Contributors

engineerm-jp avatar

Stargazers

Aiden avatar  avatar Mekayl Uzair avatar nevil chitiyo avatar Eugene  avatar Andy Park avatar Lihour SAN avatar Anselme ATCHOGOU avatar  avatar  avatar  avatar Felix Yustian Setiono avatar  avatar  avatar Antonin RAFFIN avatar Michikuni Eguchi avatar Shinya Nishimoto avatar Tomato1107 avatar  avatar

Watchers

 avatar

inverse_kinematics_youtube's Issues

Angle corrector scope clarification.

Hi, i was hoping to understand something in this code snippet.

def angle_corrector(self, angles=[0,0,0], is_right=True):
angles[1] -= 1.5*pi; # add offset

    if is_right:
        theta_1 = angles[0] - pi
        theta_2 = angles[1] + 45*pi/180 # 45 degrees initial offset
    else: 
        if angles[0] > pi:  
            theta_1 = angles[0] - 2*pi
        else: theta_1 = angles[0]
        
        theta_2 = -angles[1] - 45*pi/180
    
    theta_3 = -angles[2] + 45*pi/180
    return [theta_1, theta_2, theta_3]

i understand that you add + 45pi/180 with theta_2 and when it is right and - 45pi/180 When it is left side legs to keep the angles between 0 to 180 degree. I have also noticed that right side legs angle produce positive angles and in case of left side its producing negative angles. But can you explain why you angles[1] -= 1.5pi and theta_1 = angles[0] - pi and theta_1 = angles[0] - 2pi.

Actually i am controlling three servo with from the generated angles . Starting from x=0, y=0 and
z=(-ve)length of the last leg . But sometimes i am getting negative angles (i am doing with serial communication) and thats not supported in servo. Btw my servo can move 0 to 170ish degress.can you suggest me a workaround? Would appreciate a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.