yunshengtian / Assemble-Them-All

[SIGGRAPH Asia 2022] Assemble Them All: Physics-Based Planning for Generalizable Assembly by Disassembly
http://assembly.csail.mit.edu
MIT License
139 stars 15 forks source link

I would like to ask if this code can be run in a Windows environment? #18

Closed Zlzxzw1234 closed 4 months ago

yunshengtian commented 4 months ago

It should be, but I have not tested it. The simulation compilation may need some custom steps, and I am not sure if all dependencies run smoothly on Windows.

Interrollipsis commented 4 months ago

I'm glad this thread was made because I had the same question.

It should be, but I have not tested it. The simulation compilation may need some custom steps, and I am not sure if all dependencies run smoothly on Windows.

exactly what environment was it created in?

Interrollipsis commented 4 months ago

I'll try to get it working in windows but the redmax_py library doesn't seem to be building.

yunshengtian commented 4 months ago

This is from my labmate who tried to build on windows and made it work. Let me know if this helps.

"When running python setup.py install, you might encounter some compile errors with M_PI being undefined or something like that. To fix it, add #define _USE_MATH_DEFINES to the top of simulation/redmax/CollisionDetection/ode/odeBoxBox.cpp. In addition, comment out the line set(CMAKE_CXX_STANDARD_LIBRARIES -ldl) in both simulation/CMakeLists.txt and simulation/redmax/CMakeLists.txt , since this library doesn't exist on Windows."

And use this environment yml instead: https://drive.google.com/file/d/1FZm8f-d3ba09MEEIJ1fQkRw7fnKZStaw/view?usp=sharing