Skip to content
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

Error in documentation #20

Open
olmerg opened this issue Sep 23, 2021 · 1 comment
Open

Error in documentation #20

olmerg opened this issue Sep 23, 2021 · 1 comment

Comments

@olmerg
Copy link

olmerg commented Sep 23, 2021

The import of backends has changed in the last version now has to be:

from roboticstoolbox.backends.swift import Swift
env =  Swift()
env.launch(realtime=True)
env.add(robot)
for i in range(0,10*n):
        robot.q=q_m[i%n,:]
        env.step(Ts)
@tomawang
Copy link

Hello:
Follow up and more test as the following. Is this error from RTB or swift?
Please help to check ! Thanks! Sincerely, Tom Wang

PC

Default Edge browser, win 10 64-bits,, python 3.7.6 (Anaconda 3),
roboticstoolbox-python Version: 0.11.0 (conda install).

Code:

>>> from roboticstoolbox.backends.swift import Swift
>>> env =  Swift()
>>> env.launch(realtime=True)
>>> import roboticstoolbox as rtb          # test
>>> robot = rtb.models.URDF.Panda()    # test
>>> env.add(robot)  

Output:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "d:\Anaconda3\lib\site-packages\swift\Swift.py", line 367, in add
    show_robot=show_robot, show_collision=show_collision
TypeError: _to_dict() got an unexpected keyword argument 'show_robot'
>>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants