You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,99 +37,31 @@ Since UDP is the only supported connection type and the connection object is not
35
37
36
38
See the [examples](examples/).
37
39
38
-
# Important notice
39
-
40
-
**THIS IS NOT A KUKA PRODUCT.**
41
-
42
-
[@cmower](https://github.com/cmower) and [@mhubii](https://github.com/mhubii) are not affiliated with KUKA.
43
-
44
-
# Support
45
-
46
-
The following versions of FRI are currently supported:
47
-
* 1.15
48
-
* 2.5
49
-
50
-
Note, whilst FRI version 2.5 is supported some functionality is not.
51
-
Currently, FRI Cartesian Overlay is not supported by FRI-Client-SDK_Python.
52
-
53
-
If you have a different version, please consider [forking](https://github.com/lbr-stack/pyFRI/fork) and [submitting a pull request](https://github.com/lbr-stack/pyFRI/pulls).
54
-
55
-
# Install
40
+
## Quickstart
56
41
57
42
1. Clone repository (make sure you include `--recursive`):
If you upgrade your FRI version or want to switch between them, you need to manually remove the `build/` directory before running `pip install`.
74
-
75
-
# Usage
76
-
77
-
## Data types
78
-
79
-
You can pass NumPy arrays to the "set" methods (e.g. `setJointPosition`) in order to command the robot.
80
-
However, you **must** ensure the format of the array is correct.
81
-
82
-
Arrays that have a `dtype` of `np.float32` are the only ones that can be accepted.
83
-
See how the commands are set in the the examples.
84
-
85
-
## Collecting data from the robot
86
-
87
-
We provide additional functionality to the LBR client application class that enables data collection to a text file.
88
-
In Python, simply add the following
89
-
90
-
```python
91
-
app = fri.ClientApplication(client)
92
-
app.collect_data(file_name)
93
-
```
94
-
95
-
The string `file_name` should contain the file name for the data file.
96
-
We use the comma-separated values format for the data file, and so the file name should end with the extension `.csv` - *note*, if this isn't the case then `.csv` is automatically appended to the given file name.
97
-
98
-
The columns in the recorded csv file are as follows:
99
-
*`index`: the index of the recorded data, starts at 0, and is incremented by 1 at each call to the `step` method.
100
-
*`time`: the time of the command, starts at 0.0, then is incremented by the sample time at each call to the `step` method.
101
-
*`record_time_nsec`: the epoch time collected when the data in the current time step is recorded.
102
-
*`tsec`: controller time as specified by the FRI in seconds. See FRI documentation for `getTimestampSec`.
103
-
*`tnsec`: controller time as specified by the FRI in nanoseconds. See FRI documentation for `getTimestampNanoSec`.
104
-
*`mp1, ..., mp7`: The measured joint position for the robot.
105
-
*`ip1, ..., ip7`: The ipo joint position for the robot.
106
-
*`mt1, ..., mt7`: The measured torque for the robot.
107
-
*`et1, ..., et7`: The external torque for the robot.
108
-
*`dt`: The sample time specified on the KUKA controller.
109
-
110
-
See the [examples/LBRJointSineOverlay.py](examples/LBRJointSineOverlay.py) example that demonstrates how to easily collect data from the robot.
111
-
112
-
# Examples
113
-
114
-
First, ensure the corresponding Java applications for each example are installed (these were supplied with KUKA Sunrise).
115
-
Then turn on the robot, connect your laptop via ethernet, and follow these steps on your laptop.
-`$ python LBRJointSineOverlay.py # based on examples provided by KUKA`
120
-
-`$ python LBRTorqueSineOverlay.py # based on examples provided by KUKA`
121
-
-`$ python LBRWrenchSineOverlay.py # based on examples provided by KUKA`
122
-
-`$ python joint_teleop.py`
123
-
-`$ python task_teleop.py`
56
+
> [!NOTE]
57
+
> FRI client is fetched from [fri](https://github.com/lbr-stack/fri) and must be available as branch, refer [README](https://github.com/lbr-stack/fri?tab=readme-ov-file#contributing).
124
58
125
-
# Documentation
59
+
4. Setup the hardware, see [Hardware Setup](https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/lbr_fri_ros2_stack/doc/hardware_setup.html).
126
60
127
-
You can find documentation for `pyFRI` in the [wiki](https://github.com/cmower/FRI-Client-SDK_Python/wiki).
61
+
5. Checkout the [Example Applications](https://lbr-stack.readthedocs.io/en/latest/pyfri/doc/example_applications.html#example-applications).
128
62
129
-
# Citation
130
-
If you enjoyed using this repository for your work, we would really appreciate ❤️ if you could cite it, as it helps us to continue offering support.
63
+
##Citation
64
+
If you enjoyed using this repository for your work, we would really appreciate ❤️ if you could leave a ⭐ and / or cite it, as it helps us to continue offering support.
0 commit comments