Import Solidworks robot designs into V-REP (CoppeliaSim)



3
26261

The animation in Solidworks is not that advanced and sometimes complicated especially when we use robots, so you can use simulator V-REP instead (sorry it is not open source (just free for students)). This software is very powerful because it can be a C/C++, python, java, Matlab, octave, Lua client. First step: download the SW2URDF exporter : http://wiki.ros.org/sw_urdf_exporter make sure that this software is included in Solidworks Add-Ins -- SW2URDF The KUKA KR16 is not included in the educational version of V-REP, You can download our URDF and v-rep scene from this link : https://drive.google.com/file/d/1PuQB0SMWmqhFPgSWAvAPCUMWUS_Y1IM0/view?usp=sharing ⚠️ 𝙉𝙤𝙩𝙚𝙨 : ♜If you want to get the real axis origins and values in vrep, it is recommended: -to mate the robot to its origin position before saving the URDF file in Solidworks -to mate the robot base with Standard Planes (Front, Top, and Right plane) so that it will be well oriented in the v-rep scene. ♜The other method of importing a Solidworks models is: 1- save all its parts as ".stl" files 2-on vrep go to :File-import-Mesh.. and import all the parts 3- create all joints (Add -joint-revolute ) according to the robot documentation. It is a time-consuming method, however, it allows you to get the exact robot axis positions and directions. ♜ if you want to get different colors of the servos you can link it with a "fixed" relationship (gathering it in the same "link components 1:25" will give it a unique color). ♜ Importing a CAD file is only 50% of the job. After that, you need to adjust the robot parameters (joints limitations, max speed ...) ♜ If you want to optimize your Lua code you can rename all joints with the same name+number (eg:joint1, joint2, joint3....) and set the handle function in a "for" loop : 𝘧𝘰𝘳 𝘪=1,6,1 𝘥𝘰 𝘫𝘰𝘪𝘯𝘵𝘏𝘢𝘯𝘥𝘭𝘦𝘴[𝘪]=𝘴𝘪𝘮.𝘨𝘦𝘵𝘖𝘣𝘫𝘦𝘤𝘵𝘏𝘢𝘯𝘥𝘭𝘦('𝘫𝘰𝘪𝘯𝘵'..𝘪) 𝘦𝘯𝘥 ⚠️𝑪𝒐𝒎𝒎𝒐𝒏 𝒗𝒊𝒆𝒘𝒆𝒓𝒔 𝒑𝒓𝒐𝒃𝒍𝒆𝒎𝒔 : ♜ I didn't get the right size of the imported STL file: I think this is because of the parameters of Solidworks. For example, in CoppeliaSim, to get the right size of an STL file you need to save it in the Meters unit (save as proprieties: unit: meters): https://drive.google.com/file/d/1R2UwwFKulBlIUhPrJvOmJg-Os1XYIBYv/view?usp=sharing *** ♜ Please note that this is a personal CAD file and it's note provided by KUKA: https://www.youtube.com/watch?v=xSumVhLwPco ♜Acapella song: Imagine Dragons - On Top of the World - Peter Hollens & Mike Tompkins https://www.youtube.com/watch?v=QYVwqJCIdR0 📛 Our Facebook page : https://www.facebook.com/Mechatronics-Ninja-1601353846600883/

Published by: mechatronics Ninja Published at: 5 years ago Category: آموزشی