UI widget in "ABB IRB 140.ttm"

Typically: "How do I... ", "How can I... " questions
Post Reply
realjsk
Posts: 21
Joined: 21 Dec 2013, 03:59

UI widget in "ABB IRB 140.ttm"

Post 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.

coppelia
Site Admin
Posts: 8989
Joined: 14 Dec 2012, 00:25

Re: UI widget in "ABB IRB 140.ttm"

Post 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

fferri
Posts: 821
Joined: 09 Sep 2013, 19:28

Re: UI widget in "ABB IRB 140.ttm"

Post 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.

Post Reply