mithi / hexapod

Blazing fast hexapod robot simulator for the web.
https://hexapod.netlify.app
Apache License 2.0
590 stars 69 forks source link

New page: Saving poses #117

Open mithi opened 4 years ago

mithi commented 4 years ago

Page Ideas

  1. Be able to save poses and preselect saved named poses or saved ik configuration in local storage: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

  2. Be able to save named poses and ik configurations by pasting a json string in a text area and submitting it. that we can deserialize and store it in local storage for quick access later.

    { type: "ikpose", name: "michael-jackson-thriller", ikParams: {rx, ry, rz, tx, ty, tz}, pose: {} }
    { type: "fkpose", name: "elvis-stay-alive", pose: {} }

    We should also perform sanity checks

  3. We can also perform animations given a json object specification for example.

    { 
    type: "movement",
    name: "stay-alive-dance", 
    poseNameSequence: ["point-up", "point-down", "look-left", "look-right"],
    delaySequence: [5000, 2000, 250, 1200]
    }
  4. We can then pull up these named movements, and show the animation in a loop.

EllingtonK commented 4 years ago

Hi mithi. I am really intrigued by your Inverse Kinematics Page Joystick idea. I would like to take up this issue also if that's okay with you.

mithi commented 4 years ago

Hi mithi. I am really intrigued by your Inverse Kinematics Page Joystick idea. I would like to take up this issue also if that's okay with you.

Hey, this is so cool. I opened up a new issue solely for this. https://github.com/mithi/hexapod/issues/141 We can continue the conversation there, if that's okay with you.

mithi commented 4 years ago

@EllingtonK

You can respond directly to issue https://github.com/mithi/hexapod/issues/141 for any clarifications!

Make sure it doesn't break anything! You can also checkout the contribution guidelines and commit styleguide!