Getting started
What you will learn
How to launch the pitasc simulator, run your first application file
with the file_reader, and recognise the four most common force-based
skills in action.
Overview
The usual way to use pitasc is to start an executable called the file_reader, which loads a pitasc application file and immediately executes it. pitasc applications are defined in a custom XML-based file format, as described in XXX.
Note
The XXX cross-reference still needs to be replaced with a link to the
XML reference, e.g. Skills.
Run an example
To run the examples included with pitasc you need two terminals.
Sourcing the environment
If you did not enable auto-activation of pitasc, source the environment in every terminal:
$ source ~/pitasc/<VERSION>/setup.bash
If you configured the current version during installation, you can instead run:
$ source ~/pitasc/current/setup.bash
Start the simulator together with the visualization:
$ roslaunch pitasc_common bringup_examples.launch
Run an example application with the file_reader:
$ pitasc_filereader pitasc_common examples/beginner/forces.xml
Tip
Find out about all file_reader options by running
pitasc_filereader -h.
The examples run in a simple kinematic simulator called micro_simulator. It takes maximum accelerations and velocities into account, and contact forces with the floor are calculated from spring equations.
The pitasc_common ROS package contains many more example applications. Browsing them is the fastest way to get a feeling for how applications are defined and how skills are parameterized.
Example skills
The forces.xml example contains many of the most commonly used skills. They
are executed in the order shown below.
# |
Skill |
Purpose |
|---|---|---|
1 |
|
Fast position-controlled move to a pre-position. |
2 |
|
Establish contact without knowing the exact surface position. |
3 |
|
Regulate the contact force into a defined range. |
4 |
|
Move along the surface while maintaining contact force. |
1. Moving to the pre-position
First, the robot moves close to the ground floor. This is a typical step in real-world applications too: the subsequent force-based skills involve slower movements and therefore take more time, so force skills are usually activated only for the last millimeters or centimeters.
skill_lin: LIN movement towards the pre-position.
2. Establishing contact
Next, contact with the surface is established using a guarded approach: a movement with constant velocity towards the ground until a certain contact force is measured.
Why force instead of position?
The exact surface position is not known. Instead, the contact force carries the information that the target has been reached. In real-world setups fixtures are never fabricated perfectly, so actual target positions always differ from the theoretical ones.
skill_guarded_approach: Movement with constant velocity until contact is
established, determined by the measured contact forces.
3. Controlling the contact force
Once contact is established, a force controller is often used to keep the contact force within a certain range. This is frequently beneficial — or even necessary — for subsequent process steps.
skill_push / skill_push_settle: Force controller that ensures a
certain contact force is established.
4. Sliding along the surface
After these initial steps the robot carries out the actual assembly operation.
In forces.xml this is a sliding motion along the surface: a
velocity-controlled motion along the surface, while a force controller acting
perpendicular to it ensures that contact is neither lost nor too firm.
Note
In many applications the slide skill is aborted when another object is reached during the movement. In this example it is simply aborted after a fixed amount of time.
skill_slide: Movement along the surface with constant velocity, while a
force controller ensures firm contact.