Page 1 of 1
UI widget in "ABB IRB 140.ttm"
Posted: 15 Oct 2021, 16:24
by realjsk
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"
Posted: 18 Oct 2021, 09:19
by coppelia
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:
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}"/>
...
Then you would use simUI.setImageData to set the background image.
Cheers
Re: UI widget in "ABB IRB 140.ttm"
Posted: 18 Oct 2021, 11:11
by fferri
coppelia wrote: ↑18 Oct 2021, 09:19
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}"/>
...
Then you would use simUI.setImageData to set the background image.
or use
<image file="/path/to/file.jpg" />
to display an image from file.