Skip to content

Solve IK for goals defined as poses #3

@JonathanKuelz

Description

@JonathanKuelz

Hey together,

I've been trying to get a trained model running on downstream tasks, but at the moment, I fail to "translate" my problem to the generative-graphik data format.

When looking at your code, you always create data by using a robot's FK. There is an experiment called "experiment_infeasible poses" and indeed, you seem to use a method called generate_data_point_from_pose in this test, but this method is missing in the dataset_generation file in this repository. Could you please help me out with creating "problem data" from poses?

Also, what would be your recommended way of deploying a model anyways? My approach atm would be as follows:

  • I start with a tensor T0 of shape B x N X 4 x 4 that describes the "home poses" of B robots with N joints each
  • I define my problem as a tensor G of shape B X M X 4 X 4, that, for every robot in my mini-batch, defines M goal poses that I want to solve the IK for
  • I didn't find a way to parallelize, so in a for loop, I am first creating a RobotRevolute from the T0, then, in a second loop, I create a ProblemGraphRevolute for every robot
  • Here's where I'm stuck --> how do I create a Data object for every problem?
  • What I would do next is call model.eval_forward() and then (again, in a for loop) translate the distances to joint angles

Overall, I tried following your experiment setups here, but possible I missed some way of parallelizing. If that's the case (i.e., if I can efficiently do multiple robots and/or multiple goals in one batch without looping) I'd appreaciate if you'd give me a pointer.

Of course, once I have something up and running, I'd be happy to provide my code here if it's of any use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions