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

[python/simulator] First-class multi-robot support. #754

Merged
merged 15 commits into from
Apr 12, 2024
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
duburcqa authored Apr 11, 2024
commit 5fd21486138fd0dd26adbf19bade67409f822851
2 changes: 1 addition & 1 deletion python/jiminy_py/src/jiminy_py/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import warnings
from copy import deepcopy
from functools import partial
from typing import Any, List, Dict, Optional, Union, Sequence, Callable, Tuple

Check notice on line 16 in python/jiminy_py/src/jiminy_py/simulator.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/jiminy_py/src/jiminy_py/simulator.py#L16

'typing.Tuple' imported but unused (F401)

Check warning on line 16 in python/jiminy_py/src/jiminy_py/simulator.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/jiminy_py/src/jiminy_py/simulator.py#L16

Unused Tuple imported from typing

import toml
import numpy as np
Expand All @@ -27,7 +27,7 @@
get_default_backend,
extract_replay_data_from_log,
play_trajectories,
Viewer
Viewer)

if interactive_mode() >= 2:
from tqdm.notebook import tqdm
Expand Down Expand Up @@ -318,7 +318,7 @@
"""
# Instantiate the robot
robot = _build_robot_from_urdf(
name, urdf_path, hardware_path, mesh_path_dir, has_freeflyer,

Check notice on line 321 in python/jiminy_py/src/jiminy_py/simulator.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/jiminy_py/src/jiminy_py/simulator.py#L321

Trailing whitespace
avoid_instable_collisions, debug)

# Check if some unsupported objects have been specified
Expand Down Expand Up @@ -734,7 +734,7 @@
for viewer in self._viewers:
viewer.close()
self._viewers.clear()

Check notice on line 737 in python/jiminy_py/src/jiminy_py/simulator.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/jiminy_py/src/jiminy_py/simulator.py#L737

Trailing whitespace
# Create new viewer instances
for robot, robot_state in zip(
self.engine.robots, self.engine.robot_states):
Expand Down
Loading