Difference between revisions of "Motion Smoothing"
m (→LookAhead) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
The number of commands that can be smoothed in succession is limited by the LookAhead parameter. This is necessary to limit the amount of calculations necessary for each path segment (i.e. avoid the motion to stop for seconds to "think"). | The number of commands that can be smoothed in succession is limited by the LookAhead parameter. This is necessary to limit the amount of calculations necessary for each path segment (i.e. avoid the motion to stop for seconds to "think"). | ||
− | By default the value is set around 5-20 commands. When you define long paths you may notice the robot occasionally stopping although the motion should be smoothed. If this is relevant to your application you can try to increase the LookAhead parameter in the | + | By default the value is set around 5-20 commands. When you define long paths you may notice the robot occasionally stopping although the motion should be smoothed. If this is relevant to your application you can try to increase the LookAhead parameter in "File" -> "Configure Robot" -> "Path Generation" -> "Motion Smoothing" in iRC or in line PathGeneration of the [[Robot Configuration File]] (both on the PC and embedded robot control). Higher values lead to less but longer stops. We suggest not using values higher than 50-100, in our tests at a value of 100 stops could take multiple seconds. |
== SmoothDist == | == SmoothDist == | ||
Line 32: | Line 32: | ||
− | [[Category:CPRog]] | + | [[Category:Configuration]][[Category:CPRog]][[Category:Robot Programming]][[Category:TinyCtrl]] |
Latest revision as of 08:32, 27 September 2024
Motion Smoothing enables a continuous transition between motion commands.
While a smoothing value of 0% results in a full stop after each command higher values replace a part of the motion path with a curve so the robot can keep a constant velocity while changing direction. This is useful both for speeding up the process and for defining non-linear motion paths.
Command Types
Only commands of the same type are smoothed. This means that joint motion commands are smoothed with each other but not with linear commands and vice versa. Whenever the command type changes the robot shortly stops then starts the next motion. This also happens when motion commands are interrupted by non-motion commands (e.g. wait, conditions or setting outputs).
The following types of commands can be smoothed with each other:
- Joint and Relative-Joint
- Linear, Relative-Linear and Circular
Configuration
The smoothing is limited by parameters that can be found in the robot configuration file. Find the tag "PathGeneration".
LookAhead
The number of commands that can be smoothed in succession is limited by the LookAhead parameter. This is necessary to limit the amount of calculations necessary for each path segment (i.e. avoid the motion to stop for seconds to "think").
By default the value is set around 5-20 commands. When you define long paths you may notice the robot occasionally stopping although the motion should be smoothed. If this is relevant to your application you can try to increase the LookAhead parameter in "File" -> "Configure Robot" -> "Path Generation" -> "Motion Smoothing" in iRC or in line PathGeneration of the Robot Configuration File (both on the PC and embedded robot control). Higher values lead to less but longer stops. We suggest not using values higher than 50-100, in our tests at a value of 100 stops could take multiple seconds.
SmoothDist
The parameters SmoothDistCart and SmoothDistJoint define the distance of a path that will be smoothed at 100%. SmoothDistCart is in mm, SmoothDistJoint in percent.