question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ugently need help on a very simple conceptual problem

See original GitHub issue

Hi there,

I am trying to understand why I fail to produce identical qdd when I use the same robot to perform forward dynamics twice.

Here is the test script:

``

n_data=100
device="cpu"
gt_robot_model = DifferentiableKUKAiiwa(device=device)
train_data = generate_sine_motion_forward_dynamics_data(
    gt_robot_model, n_data=n_data, dt=1.0 / 250.0, freq=0.1
)
train_loader = DataLoader(dataset=train_data, batch_size=100, shuffle=False)

for g in [True, False]:
    for d in [True, False]:
        
        for batch_idx, batch_data in enumerate(train_loader):
                q, qd, qdd, tau = batch_data
                
        
                qdd_pred = gt_robot_model.compute_forward_dynamics(
                    q=q, qd=qd, f=tau, include_gravity=g, use_damping=d
                )
        
                print (g, d, torch.sum(torch.abs(qdd_pred - qdd)))

printout: True True tensor(15084.983) True False tensor(19104.133) False True tensor(20023.293) False False tensor(23508.631)

Please let me know which concepts I have failed to grasp, so that I can read up on them. Many thanks,

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fmeiercommented, Oct 18, 2021

Hi,

ah yes, now I understand. I was able to reproduce the issue on my side. It seems like there is a bug in our new compute_forward_dynamics function (batch_size=1 works, but batch_size > 1 does something weird). @exhaustin

While we’re debugging this, you can use compute_forward_dynamics_old , which is conceptually the same and works for any batch_size, but is slower. I just confirmed that on my side using compute_forward_dynamics_old you get a near 0 difference when both gravity and damping is set to True.

Hope this helps, will notify you when we fixed the newer and faster forward dynamics computation!

0reactions
WilsonFok2020commented, Oct 19, 2021

Thank you very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A conceptual model of urgent care sense-making and help ...
We have developed a conceptual model that shows how people make sense of urgent care through work which then influences help-seeking decisions ...
Read more >
Problem Solving and Decision Making ... - Management Library
It helps a great deal to verify your problem analysis for ... consider to be important problems to consider are really just urgent...
Read more >
What is Problem Solving? Steps, Process & Techniques - ASQ
Helpful problem-solving techniques include using flowcharts to identify the expected steps of a process and cause-and-effect diagrams to define and analyze ...
Read more >
The Six Step Problem Solving Model
The Six-Step method provides a focused procedure for the problem solving (PS) group. • It ensures consistency, as everyone understands the approach to...
Read more >
7 Steps to an Effective Problem Solving Process
Step 4: Look for Root Causes ... This step involves asking and answering a lot of questions. Ask questions like: What caused this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found