2024-01-29 03:44:59 +00:00
# 📦 Bellande Step
2024-01-29 00:43:38 +00:00
### ✔️ confirmed versions
2024-01-29 03:44:59 +00:00
- `The step function efficiently computes the next step towards a target node within a specified distance limit.`
2024-01-29 05:59:37 +00:00
## Usage 2D Space
2024-01-29 03:44:59 +00:00
Suppose you have two nodes representing positions in a 2D space:
- `node0` at coordinates `(0, 0)`
- `node1` at coordinates `(5, 5)`
You want to compute the next step from `node0` towards `node1` while limiting the maximum distance to 3 units.
```python
2024-01-30 18:55:48 +00:00
# Define Import
2024-01-30 19:01:45 +00:00
from bellande_robot_step.bellande_robot_step_2d import bellande_step_3d, Node3D
2024-01-30 18:55:48 +00:00
2024-01-29 03:44:59 +00:00
# Define the nodes
2024-01-29 16:37:23 +00:00
node0 = Node2D(0, 0)
node1 = Node2D(5, 5)
2024-01-29 03:44:59 +00:00
# Compute the next step within a distance limit of 3 units
2024-01-29 05:49:36 +00:00
next_step = bellande_step_2d(node0, node1, limit=3)
2024-01-29 03:44:59 +00:00
# Output the coordinates of the next step
print("Next Step Coordinates:", next_step.coord)
```
## Usage 3D Space
Suppose you have two nodes representing positions in a 3D space:
- `node0` at coordinates `(0, 0, 0)`
- `node1` at coordinates `(5, 5, 5)`
You want to compute the next step from `node0` towards `node1` while limiting the maximum distance to 3 units.
```python
2024-01-30 18:55:48 +00:00
# Define Import
from bellande_robot_step.bellande_robot_step_2d import bellande_step_2d, Node2D
2024-01-29 03:44:59 +00:00
# Define the nodes
2024-01-29 16:37:23 +00:00
node0 = Node3D(0, 0, 0)
node1 = Node3D(5, 5, 5)
2024-01-29 03:44:59 +00:00
# Compute the next step within a distance limit of 3 units
2024-01-29 05:49:36 +00:00
next_step = bellande_step_3d(node0, node1, limit=3)
2024-01-29 03:44:59 +00:00
# Output the coordinates of the next step
print("Next Step Coordinates:", next_step.coord)
```
### Avaliable
- 2D Space
- 3D Space
- 4D Space
- 5D Space
- 6D Space
- 7D Space
- 8D Space
- 9D Space
- 10D Space
2024-01-29 00:43:38 +00:00
## Website
- https://pypi.org/project/bellande_robot_step/
### Installation
- `$ pip install bellande_robot_step`
```
Name: bellande_robot_step
2024-01-30 18:56:29 +00:00
Version: 0.2.3
2024-01-29 00:43:38 +00:00
Summary: Computes the next step towards a target node
Home-page: github.com/RonaldsonBellande/bellande_robot_step
Author: Ronaldson Bellande
Author-email: ronaldsonbellande@gmail.com
License: GNU General Public License v3.0
Requires: numpy
Required-by:
```
### License
This Package is distributed under the [GNU General Public License v3.0 ](https://www.gnu.org/licenses/gpl-3.0.en.html ), see [LICENSE ](https://github.com/RonaldsonBellande/bellande_robot_step/blob/main/LICENSE ) and [NOTICE ](https://github.com/RonaldsonBellande/bellande_robot_step/blob/main/LICENSE ) for more information.