-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solve IK for goals defined as poses #3
Comments
Hi Jonathan, I've added To create a Data object for every problem, I would refer to this code. As you did, we first loop through every robot type and store the structural data in a list, and then generate the Data object for all robots in parallel. In this case, we are using FK to generate the data. If you don't want to sample specific joint angles, you will need to write a similar function that generates the Data object using goal poses. The easiest way would probably involve a for loop with code similar to what's in We did not parallelize the process of translating distances to joint angles, which you can see here. We simply use @filipmrc may have more thoughts on this. Hope that was helpful and please feel free to provide any PRs if you implement any of these new features! |
Great, thanks for your help -- I was able to write down a first version of a possible solution (see #4 ). The first tests are promising, I would like to speed the process up (I am sure that I did not "translate" the data in the most efficient way yet) and further test it in the upcoming days. |
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:
T0
of shape B x N X 4 x 4 that describes the "home poses" of B robots with N joints eachG
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 forRobotRevolute
from the T0, then, in a second loop, I create aProblemGraphRevolute
for every robotmodel.eval_forward()
and then (again, in a for loop) translate the distances to joint anglesOverall, 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
The text was updated successfully, but these errors were encountered: