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
Can't start simulator on Windows. #4
Comments
same question here |
Which version of the toolbox and Swift are you ruunning? Are you installed off PyPI or from Github? Also try deleting the browser cache. |
For me: using python called by:
From
From my browser
Tried with firewall off, different browser, PyPI version - nothing changes. |
Can you please try this:
|
Found the bug for my case. Line 121 in 84ef2a5
As I run the code from a different partition, changing the cwd makes it impossible to find the files.
By the way: big thanks for your work 😃 |
I have the same issue here, I'm on Windows 7 64bit, WinPython 3.8.8.0 and the latest Official "obotics-toolbox-python" 0.9.1. I can't start the Swift, see my issue report here: Can't open the Swift simulator in the browser (Windows 7, Python 3.8) Also, I can't start the vpython backend. I can only show a vpython window in Firefox tab by such command mentioned here vpython · PyPI
So, I guess it is a socket/server error under Windows OS. Any one has find the solution? |
Hi, by using this changes, I can view the 3D arm in Swift Simulator(inside Firefox) now. Thanks! |
This is the patch to apply the changes to the latest git version:
|
When I try to use the git version of See my report here: petercorke/robotics-toolbox-python#209 (comment) It looks like when using the git version, the package are pointed by
and
Which means the packages are points to my local git clone of the packages. But I see that: |
OK, I found the solution of this issue now. When I clone the repo in Windows, the folder name is Question: I see that from the github web address, Thanks. |
Sorry for the radio silence on this one.
For backwards compatibility and symmetry with other backends, it can be also used like this:
Where in the latter the folder was renamed to |
@adv4ncr: Regarding the first issue about the directory being wrong since you run code from a different partition. This is especially tricky. On the Python side of things, there is a HTTP server which provides files to the browser to display the robot/whatever meshes need to be displayed. The HTTP server can only serve files in or above where it is rooted. I think I'll have to add an optional keyword argument to Swift to specify where to launch the server for cases such as yours. Any thoughts on this? |
Hi, thanks for your explanation, now you have to fix this line:
This still exist in the latest github master. |
I change the line to:
But I still can't run the simple test program:
I got such error:
I'm a bit sad, because I got running errors here or there. |
I take some time to track down this error, it looks like the commit: consolidate all plot/teach in robot class · petercorke/robotics-toolbox-python@8bb9ac5 I see that the the backend PyPlot has changed the
|
Hey @asmwarrior, on the latest commits for robotics toolbox and swift (you will need to re-install swift) I can run:
|
Hey @adv4ncr, @asmwarrior, I've experimented with the recommended change to the server root. It turns out that using |
I just updated to the latest github version of swift, robotictoolbox, spatial-math, and running this code still gives me errors:
Can you have a look? |
This sounds like you need to be running the github version of spatialgeometry |
Good, this solved the problem. |
I am trying to launch the swift simulator with the Panda manipulator.
I have a simple jupyter notebook with the following code (as mentioned in the readme):
On execution, a new tab opens up in my browser with a small box on the top right corner displaying the timestamp and FPS and nothing happens after this. On the notebook side I get an excpetion, about 5-10 seconds after executing the cell.
Here is the stacktrace for that:
Browser Window:
I'm running this on a conda environment in Windows 10 with python
3.7.7
PS: I tried disabling the firewall but that didn't help either.
The text was updated successfully, but these errors were encountered: