How to utilizes APIs provided by robot manufactures and then control the robot
이전 댓글 표시
Hello ,experts in matlab.
I am very pleased that matlab already has hardware packages that support connecting and controlling UR and kinova robots. However, I am very interested in the specific implementation process.
In other words, if I have the api provided by the robot manufacturer, how can I realize the communication and control with the robot in matlab without using the ROS interface?
Any suggestions or tips on experience are appreciated.
Best regards,
-Jian
채택된 답변
추가 답변 (1개)
atharva
2023년 11월 10일
0 개 추천
Hey Jian,
I understand that you want to learn about the implementation process of connecting and controlling UR and kinova robots.
You will need Robotics System Toolbox to control your robotic system and go through the below steps -
1.Create an API instance to Connect to the Robot: Create an API instance using your robot's IP address to establish connection with the robot. This involves creating an object in MATLAB that serves as a handle for interacting with the robot.
2.Connect to the Robot: Use the created API instance to connect to the robot. This step is necessary before sending or receiving any commands or data.
3.Get Sensor Data from the Robot: After establishing a connection, you can retrieve sensor data from the robot. This could include information from various sensors like cameras, lidars, encoders, etc., depending on the capabilities of the robot.
4.Control Command Modes: The toolbox allows you to send control commands to the robot to make it move or perform specific tasks. This involves specifying the desired motion or action in the form of control commands.
5.Disconnect from the Robot: Once you have completed your tasks or simulation, it's essential to disconnect from the robot. This releases the resources and ensures a clean termination of the connection.
You can also go through the example Connect to Kinova Gen3 Robot and Manipulate the Arm using MATLAB, this example demonstrates how to connect the Kinova® Gen3 7-DoF Ultralightweight Robot arm to MATLAB and Simulink. This also helps you to get feedback from the robot and to send control commands.
You can also go through the mathworks documentation of Robotics System Toolbox https://www.mathworks.com/help/releases/R2019b/robotics/index.html
I hope this helps!
카테고리
도움말 센터 및 File Exchange에서 Code Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!