real-time simulation

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

real-time simulation

shayan moradkhani
hi,
i`m totally new to vtk and at the moment, i`m stuck in library
configurations...
i would like to know if vtk allows real-time simulation. im coding in c++
and im going to simulate an inverse kinematics of a 7-degrees of freedom
robot. by real-time i mean, applying translation and rotation as soon as i
give the inputs.
Untitled.png <http://vtk.1045678.n5.nabble.com/file/t342474/Untitled.png>  
im attaching a picture, not sure if its gonna work, but here is the
scenario:

im generating inputs using PLC every 5ms or my inputs are going to be via
joystick, then i want to move the robot as soon as VTK receives it. PLC has
interface with C++ and im coding in C++ for VTK as well. any help would be
appreciated



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: real-time simulation

drjustice
Hi Shayan,

At 5 ms per frame, you're looking at 200 fps for the display.

VTK can certainly compute 7 matrices quickly enough.

The real question is, can the geometry of your robot be displayed at 200 fps just as-is? That depends more on the complexity of your geometry and your model than VTK's ability to compute 7 matrices.

I would certainly give VTK a try. It sounds like VTK would be a good fit for this.


Patrick.


´╗┐On 2018-06-26, 6:51 AM, "vtkusers on behalf of shayan moradkhani" <[hidden email] on behalf of [hidden email]> wrote:

    hi,
    i`m totally new to vtk and at the moment, i`m stuck in library
    configurations...
    i would like to know if vtk allows real-time simulation. im coding in c++
    and im going to simulate an inverse kinematics of a 7-degrees of freedom
    robot. by real-time i mean, applying translation and rotation as soon as i
    give the inputs.
    Untitled.png <http://vtk.1045678.n5.nabble.com/file/t342474/Untitled.png>  
    im attaching a picture, not sure if its gonna work, but here is the
    scenario:
   
    im generating inputs using PLC every 5ms or my inputs are going to be via
    joystick, then i want to move the robot as soon as VTK receives it. PLC has
    interface with C++ and im coding in C++ for VTK as well. any help would be
    appreciated
   
   
   
    --
    Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
    _______________________________________________
    Powered by www.kitware.com
   
    Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
   
    Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
   
    Search the list archives at: http://markmail.org/search/?q=vtkusers
   
    Follow this link to subscribe/unsubscribe:
    https://public.kitware.com/mailman/listinfo/vtkusers
   

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: real-time simulation

shayan moradkhani
hi,
thank you very much for your reply. honestly i have no idea about these
numbers or that VTK solving matrices. where should i start from?
something like loading two very simple CAD models and moving them
relatively. there is not much tutorials for c++. if i get the concept of how
transformation works in VTK, i might be able to get going.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: real-time simulation

drjustice

Hi Shayan,


It's true, using VTK for the first time can be a bit confusing. Getting the concept of the different data and transformation pipelines, as well as the rendering process, can be somewhat confusing, especially if you're new to 3D programming.  If you are an experienced 3D developer, you should pick things up quickly, however.


I would start here: 


https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TransformPipeline



Regards

Patrick.




From: vtkusers <[hidden email]> on behalf of shayan moradkhani <[hidden email]>
Sent: June 26, 2018 8:40:21 AM
To: [hidden email]
Subject: Re: [vtkusers] real-time simulation
 
hi,
thank you very much for your reply. honestly i have no idea about these
numbers or that VTK solving matrices. where should i start from?
something like loading two very simple CAD models and moving them
relatively. there is not much tutorials for c++. if i get the concept of how
transformation works in VTK, i might be able to get going.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: real-time simulation

shayan moradkhani
In reply to this post by drjustice
hi,
the model is already designed in solidworks and i'll have to import it to
VTK and adjust the 7 degrees of freedom. the robot is going to carry out
machining process. so i have  to be able to first import the model,
then find a way to control the model, simulating machining process using the
collision detection that you sent me. i'm not sure how to describe the
complexity of the model. so do you think with vtk it is gonna work out?
i appreciate your help
Shayan



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers