Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: petercorke/robotics-toolbox-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: codeFighter2022/robotics-toolbox-python-bugfix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 19, 2025

  1. Update Robot.py

    Inverse dynamics with recursive Newton-Euler does not work for URDF imports and also not for the Panda model:
    
    import roboticstoolbox as rtb
    robot = rtb.models.Panda()
    q = np.random.rand(robot.n)
    qD = np.random.rand(robot.n)
    qDD = np.random.rand(robot.n)
    tau = robot.rne(q, qD, qDD)
    
    The origin of the error is
    jp = self.links[j].parent.jindex 
    which is empty for some types.
    
    I implemented a another search algorithm of the parent algorithm via:
    jp = next(i for i, link in enumerate(self.links) if link.name == parent_name)
    codeFighter2022 authored Mar 19, 2025
    Configuration menu
    Copy the full SHA
    bd93cfa View commit details
    Browse the repository at this point in the history
Loading