UI widget in "ABB IRB 140.ttm"
UI widget in "ABB IRB 140.ttm"
In the older versions of CoppelianSim/V-REP, "ABB IRB 140.ttm" used to have a nice user interface to directly simulate the forward and inverse kinematics of the robot. I can't find that user interface in the latest version. Is there a way I can get it back? Thanks.
Re: UI widget in "ABB IRB 140.ttm"
Hello,
the old UI of that model was made with OpenGL-based custom UIs, which are now deprecated since not flexible and difficult to extend. Old models using those custom UIs should however still work normally.
With Qt-based custom UIs you can however do the same. You would have to place an image widget as the background, and controls placed in an absolute coord. manner, e.g. like:
Then you would use simUI.setImageData to set the background image.
Cheers
the old UI of that model was made with OpenGL-based custom UIs, which are now deprecated since not flexible and difficult to extend. Old models using those custom UIs should however still work normally.
With Qt-based custom UIs you can however do the same. You would have to place an image widget as the background, and controls placed in an absolute coord. manner, e.g. like:
Code: Select all
-- xml string for UI creation:
....
<image geometry="0,0,1088,607" width="1088" height="607" id="1"/>
<button text="Button" geometry="932,502,100,40" on-click="click_callback" id="2" style="* {background-color: #66ff66}"/>
...
Cheers
Re: UI widget in "ABB IRB 140.ttm"
or usecoppelia wrote: ↑18 Oct 2021, 09:19Then you would use simUI.setImageData to set the background image.Code: Select all
-- xml string for UI creation: .... <image geometry="0,0,1088,607" width="1088" height="607" id="1"/> <button text="Button" geometry="932,502,100,40" on-click="click_callback" id="2" style="* {background-color: #66ff66}"/> ...
<image file="/path/to/file.jpg" />
to display an image from file.