Skip to content
Snippets Groups Projects
Commit 10508356 authored by Jianfeng Gao's avatar Jianfeng Gao
Browse files

update readme

parent 7b4ffa47
No related branches found
No related tags found
No related merge requests found
Pipeline #22980 passed
# Installation
See also [ArmarX API documentation](https://armarx.humanoids.kit.edu/python).
## Using Axii
Add and upgrade the module `armarx/python3-armarx` in Axii.
**Note:** The module is also included in the `armarx` module,
which is added to new workspaces by default.
```shell
axii workspace add armarx/python3-armarx
axii workspace upgrade -m armarx/python3-armarx
```
## From Source Using Pip
To install the ArmarX Python bindings into your virtual environment:
```shell
source .venv/bin/activate
# armarx__python3_armarx__PATH = Path to python3-armarx
pip install -e $armarx__python3_armarx__PATH
```
The `-e` flag is optional.
If you pass the `-e` flag to pip, it will install the package in _editable_ mode,
which means that you do not have to reinstall the package if you update or change
the ArmarX python bindings.
\ No newline at end of file
# Python ArmarX - A Python Toolbox for ArmarX <!--
https://git.h2t.iar.kit.edu/sw/armarx/python3-armarx
-->
<sup>Issue boards:</sup>
[![Bugs](https://img.shields.io/badge/Bugs-red.svg)](
.../-/issues/?sort=updated_desc&state=opened&label_name[]=bug&first_page_size=20
)
[![Migration](https://img.shields.io/badge/Migration-orange.svg)](
.../-/issues/?sort=updated_desc&state=opened&label_name[]=migration&first_page_size=20
)
[![Requests](https://img.shields.io/badge/Feature_requests-yellow.svg)](
.../-/issues/?sort=updated_desc&state=opened&label_name[]=migration&first_page_size=20
)
<sup>| Setup:</sup>
[![Installation](https://img.shields.io/badge/Installation-blue.svg)](
./Installation.md
)
<sup>| Maintainer:</sup>
[![Code owners](https://img.shields.io/badge/Code_owner-cyan.svg)](
./.gitlab/CODEOWNERS
)
This package provides Python 3 bindings for ArmarX,
including client classes for common interfaces.
[[_TOC_]] [[_TOC_]]
--- ---
## Installation # Foreword
### Using Axii **Python ArmarX - A Python Toolbox for ArmarX**
Add and upgrade the module `armarx/python3-armarx` in Axii. This package provides Python 3 bindings for ArmarX,
including client classes for common interfaces to core functionalities
**Note:** The module is also included in the `armarx` module,
which is added to new workspaces by default.
```shell # Terms and Concepts
axii workspace add armarx/python3-armarx
axii workspace upgrade -m armarx/python3-armarx
```
The main structure by this package can be illustrated like this:
### From Source Using Pip {...}
To install the ArmarX Python bindings into your virtual environment:
```shell
source .venv/bin/activate
# armarx__python3_armarx__PATH = Path to python3-armarx
pip install -e $armarx__python3_armarx__PATH
```
The `-e` flag is optional. # Structure of this Package
If you pass the `-e` flag to pip, it will install the package in _editable_ mode,
which means that you do not have to reinstall the package if you update or change
the ArmarX python bindings.
On the code level, this package contains the following libraries and components:
## Usage ## Libraries
- The [core library](source/armarx/externalization/core) with common data types and their conversions.
# Usage Example
The following examples show how to connect to a proxy provided by ArmarX framework in general, as well as specialized use cases such as obtaining images, control the robot, read from and write to memory, etc.
### Connecting to an Existing Proxy ### Connecting to an Existing Proxy
...@@ -54,7 +70,6 @@ platform_unit = PlatformUnitInterfacePrx.get_proxy('Armar6PlatformUnit') ...@@ -54,7 +70,6 @@ platform_unit = PlatformUnitInterfacePrx.get_proxy('Armar6PlatformUnit')
platform_unit.moveTo(0.0, 0.0, 0.0, 50.0, 0.1) platform_unit.moveTo(0.0, 0.0, 0.0, 50.0, 0.1)
``` ```
### Examples ### Examples
More examples can be found in the [`examples`](examples) folder. More examples can be found in the [`examples`](examples) folder.
...@@ -63,9 +78,9 @@ See also the [Examples in the ArmarX Academy](https://git.h2t.iar.kit.edu/sw/arm ...@@ -63,9 +78,9 @@ See also the [Examples in the ArmarX Academy](https://git.h2t.iar.kit.edu/sw/arm
### Use armarx_control ### Use armarx_control
See [tutorial](docs/_tutorial_armarx_control.md) See [armarx_control tutorial](docs/_tutorial_armarx_control.md)
## Documentation # How To
See the [ArmarX API documentation](https://armarx.humanoids.kit.edu/python). See the [ArmarX API documentation](https://armarx.humanoids.kit.edu/python).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment