after import robot from urdf ,how can i sent angles to the joints ,and test my own kinermatic algorithm?

10 views (last 30 days)
I have a problem and need help. I want to use 'smimport' by simscape or 'importrobor' by robotics robotics system toolbox from a .XML or .URDF file ,exactly i don't know the differences.The file is from solidworks .step file . so my question ,
1: what's the difference between 'importrobot' and 'smimport' ? I want to use the file to build my own robot in matlab ,and test with my own kinematics and the trajectory planning algorithm in .m file .
So my second QS: How can i get the interface to send the joints angles to my robots ?How can i get the interface to send the joints angles to my robots ?Can you show me an soucecode case of dealing with that problem ? I want to call the function by my own ,such like the Robotics Toolbox does, use the inverse()to calculate the joints angles .
Sincerely

Accepted Answer

J Chen
J Chen on 23 Apr 2019
'importrobot' imports files into Robostics System toolbox while 'smimport' imports files into Simscape Multibody (was named SimMechanics).
If you import files into Simscape Multibody, you can specify joint angles by double click at the corresponding Revolute Joint block, then change Actuation - Motion to 'Provided by Input' and Actuation - Torque to 'Automatically Computed'. Next add a Simulink source block and 'Simulink-PS Converter' block (under Utilities) to provide the angle command.

More Answers (0)

Categories

Find more on Applications in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!