after import robot from urdf ,how can i sent angles to the joints ,and test my own kinermatic algorithm?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
J Chen
2019-4-23
'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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!