Another approach to assembly solver (A2plus)

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Post by manuelkrause »

@kbwbe,
Hi Klaus,
is this bug needed anymore today... ?

Code: Select all

Missing parentheses in call to 'print'. Did you mean print(cellAdress)? (a2p_bom.py, line 128)
Traceback (most recent call last):
  File "<string>", line 66, in Initialize
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Post by manuelkrause »

kbwbe wrote: Wed Nov 07, 2018 5:30 pm @manuelkrause,
There is now the feature freeze and bugfix period running for fc-0.18. Perhaps this bug is important.
Best way:
Post a helprequest with title something like: "Testing FC018-pre, undefined symbol in library during start of external WB", with errormessage, your systeminformation, way to reproduce. Even if there is something wrong during experimenting with A2plus, "undefined symbol" should not happen.
I'd take it into account soon. Let me finish to conduct some cross testing first.
There'd be another problem, that the openSUSE tumbleweed FC builds don't ship with accurate build version numbers. So I won't be able to name the culprit (version and or last commit) correctly.

An idea on this?
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Another approach to assembly solver (A2plus)

Post by herbk »

Hi Klaus, @kbwbe,
i'm on OpenSuse to (LEAP 42.3) and also have some problems at some WBs at the by OS installed FC. If i use the AppImage only a few aditional WBs makes probs, but usual it is a on OS not availible third party package...
Last edited by herbk on Wed Nov 07, 2018 7:05 pm, edited 1 time in total.
Gruß Herbert
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Another approach to assembly solver (A2plus)

Post by wandererfan »

manuelkrause wrote: Wed Nov 07, 2018 4:00 pm

Code: Select all

During initialization the error /usr/lib64/FreeCAD/lib/Part.so: undefined symbol: _ZN24BRepMesh_IncrementalMeshC1ERK12TopoDS_Shapedbdbb occurred in /home/manuel/.FreeCAD/Mod/A2plus/InitGui.py
Please look into the log file for further information
This can be due to my further playing with A2plus colors, or due to missing/ not updated libraries for the v0.18 FC.
Undefined OCC symbol is probably a build/install problem rather than anything you're doing in Python. The Install/Compile forum is the best place to get help for this one.

sgrogan wrote: ping
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Post by manuelkrause »

manuelkrause wrote: Wed Nov 07, 2018 6:08 pm @kbwbe,
Hi Klaus,
is this bug needed anymore today... ?

Code: Select all

Missing parentheses in call to 'print'. Did you mean print(cellAdress)? (a2p_bom.py, line 128)
Traceback (most recent call last):
  File "<string>", line 66, in Initialize
Regarding this tiny one in a2p_bom.py I 've overcome with:

Code: Select all

       for i in range(0,12): #12 Rows enought for a partlist
            for k in range(0,BOM_MAX_LENGTH):
                cellAdress = alphabet_list[i]+str(k+1)
                print (cellAdress, ss.set(cellAdress, ''))                # <-- wrong print fixed

    def Activated(self):
        doc = FreeCAD.activeDocument()
THIS ISSUE is AFFECTING MASTER code !!!
User avatar
manuelkrause
Posts: 442
Joined: Thu Jul 05, 2018 7:16 pm

Re: Another approach to assembly solver (A2plus)

Post by manuelkrause »

kbwbe wrote: Wed Nov 07, 2018 5:10 pm
manuelkrause wrote: Wed Nov 07, 2018 4:00 pm Hi Klaus, @kbwbe,
today I've finally tried to use an openSUSE tumbleweed 0.18-pre FreeCAD version and get this in bash console (as startup in normal KDE GUI failed):

Code: Select all

During initialization the error /usr/lib64/FreeCAD/lib/Part.so: undefined symbol: _ZN24BRepMesh_IncrementalMeshC1ERK12TopoDS_Shapedbdbb occurred in /home/manuel/.FreeCAD/Mod/A2plus/InitGui.py
Please look into the log file for further information
There is no log info found anywhere.

This can be due to my further playing with A2plus colors, or due to missing/ not updated libraries for the v0.18 FC.

Ideas and hints highly appreciated, TIA
Hi Manuel,
it seems to be related to A2plus. Please test with master branch of it (identical to devel ATM), whether the problem still exists or not. If the problem vanishes, it perhaps has to do with color setting experiments.

P.S.: It can be a library problem too... P.S.-II: (as undefined symbol should never happen!)
Same issue occurs with A2p MASTER.

For openSUSE tumbleweed I currently can only switch between two FC versions. The FC 0.17 doesn't make any problem. Even not with my A2plus color playground. (Except for the color issues remaining...)
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Another approach to assembly solver (A2plus)

Post by dcapeletti »

This has been fixed with new release V0.1.5.2
It works perfect now.

Another feature that might be interesting, is to add a toggle button to recalculate the assembly when you move a part manually. For example I have a motor and I move the axis, it should automatically move the whole mechanism anchored to it.

To do this I currently have to press each time the rubyk cube button, which is uncomfortable, I don't know any other way. If the user doesn't want to recalculate for each time he moves the axis, just deactivate the button.

Thanks
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

manuelkrause wrote: Wed Nov 07, 2018 6:08 pm

Code: Select all

Missing parentheses in call to 'print'. Did you mean print(cellAdress)? (a2p_bom.py, line 128)
Traceback (most recent call last):
  File "<string>", line 66, in Initialize
Sorry, fixed with V0.1.5.3
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Another approach to assembly solver (A2plus)

Post by kbwbe »

herbk wrote: Wed Nov 07, 2018 6:18 pm Hi Klaus, @kbwbe,
i'm on OpenSuse to (LEAP 42.3) and also have some problems at some WBs at the by OS installed FC. If i use the AppImage only a few aditional WBs makes probs, but usual it is a on OS not availible third party package...
Hi Herbert,
thank you for the tips. For at least 2 years i changed distro from OpenSuse to Mint, so i am not up to date what's going on with OpenSuse.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Another approach to assembly solver (A2plus)

Post by sgrogan »

wandererfan wrote: Wed Nov 07, 2018 6:19 pm Undefined OCC symbol is probably a build/install problem rather than anything you're doing in Python. The Install/Compile forum is the best place to get help for this one.
Looks that way, I can't say much about OpenSUSE. I tested with the AppImage and everything was OK.
"fight the good fight"
Post Reply