recordRobotState
Description
Examples
Log the State Data from Simulated Cobot Using RTDE Interface
Connect to a physical or simulated cobot, using
urRTDEClient
object.
ur = urRTDEClient('172.19.98.176');
Record the robot's joint configuration over a specified duration (in seconds) and rate (in Hz).
duration = 20 rate = 5 data = recordRobotState(ur, duration, rate)
data = JointConfiguration: [100×6 double] JointVelocity: [100×6 double] Pose: [100×6 double] EEVelocity: [100×6 double] JointAcceleration: [100×6 double]
Input Arguments
ur
— Connection to Universal Robots cobot
object
Connection to physical or simulated cobot from Universal Robots, specified as a
urRTDEClient
object.
duration
— Total time to record the joint configurations
time
Total time to record the joint configurations, specified in seconds.
Data Types: double
rate
— Rate of data logging
numeric scalar
Rate at which the state data must be logged from the simulated cobot during its motion, specified in Hz (hertz).
Data Types: double
Output Arguments
data
— Matrix where each row represents the joint configuration at a given time
structure
Matrix where each row represents the joint configuration at a given time.
Data Types: struct
Version History
Introduced in R2024a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)