Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urdf support added to main #126

Merged
merged 16 commits into from
Oct 14, 2024
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@

### Imports
First import the modules

```python
import numpy as np
import rainbow.math.vector3 as V3
import rainbow.math.quaternion as Q
import rainbow.simulators.prox_rigid_bodies.api as API
import rainbow.simulators.prox_rigid_bodies.procedural as PROC
import rainbow.simulators.prox_rigid_bodies.scenes as SCENE
from rainbow.geometry.surface_mesh import create_sphere, create_box
```

Expand Down Expand Up @@ -126,7 +127,7 @@ First, initialize the environment.

```python
engine = API.Engine()
PROC.create_ground(engine, V3.zero(), Q.Rx(0.3*np.pi), density=1000.0, material_name='default');
SCENE.create_ground(engine, V3.zero(), Q.Rx(0.3*np.pi), density=1000.0, material_name='default');

API.create_rigid_body(engine,'sphere_body')

Expand Down Expand Up @@ -173,7 +174,7 @@ size = 6.0
test_material = "material"
API.create_surfaces_interaction(engine, test_material, test_material, 1, np.arctan(V3.make((0.09*np.pi), np.inf, np.inf)))

PROC.create_ground(engine, V3.zero(), q_mu, density=1000.0, material_name=test_material)
SCENE.create_ground(engine, V3.zero(), q_mu, density=1000.0, material_name=test_material)
API.create_rigid_body(engine,'sphere_body')

V_1, T_1 = create_box(size, size, size)
Expand Down Expand Up @@ -302,8 +303,8 @@ Let's make a sliding box to illustrate how friction. In the last example, we cre

```python
engine = API.Engine()
PROC.create_ground(engine, V3.zero(), Q.identity(), density=1000.0, material_name='default');
PROC.create_dome(engine,
SCENE.create_ground(engine, V3.zero(), Q.identity(), density=1000.0, material_name='default');
SCENE.create_dome(engine,
r = V3.zero(),
q = Q.identity(),
outer_radius = 5.0,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading