8000 fix format of some files · silvery107/rl-mpc-locomotion@80cdc6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 80cdc6d

Browse files
committed
fix format of some files
1 parent 485ed2e commit 80cdc6d

File tree

3 files changed

+4
-41
lines changed

3 files changed

+4
-41
lines changed

MPC_Controller/Parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ class Parameters:
4545

4646
locomotionUnsafe = False # global indicator for switching contorl mode
4747
# FSM_check_safety = False
48-
FSM_print_info = False
48+
FSM_print_info = False

RL_Environment/sim_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,4 @@ def new_sub_terrain(): return SubTerrain(width=num_rows, length=num_cols, vertic
240240
tm_params.nb_triangles = triangles.shape[0]
241241
tm_params.transform.p.x = -1.
242242
tm_params.transform.p.y = -terrain_width/2 - 1.
243-
gym.add_triangle_mesh(sim, vertices.flatten(), triangles.flatten(), tm_params)
243+
gym.add_triangle_mesh(sim, vertices.flatten(), triangles.flatten(), tm_params)

RL_Environment/tasks/__init__.py

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,12 @@
1-
# Copyright (c) 2018-2021, NVIDIA Corporation
2-
# All rights reserved.
3-
#
4-
# Redistribution and use in source and binary forms, with or without
5-
# modification, are permitted provided that the following conditions are met:
6-
#
7-
# 1. Redistributions of source code must retain the above copyright notice, this
8-
# list of conditions and the following disclaimer.
9-
#
10-
# 2. Redistributions in binary form must reproduce the above copyright notice,
11-
# this list of conditions and the following disclaimer in the documentation
12-
# and/or other materials provided with the distribution.
13-
#
14-
# 3. Neither the name of the copyright holder nor the names of its
15-
# contributors may be used to endorse or promote products derived from
16-
# this software without specific prior written permission.
17-
#
18-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21-
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22-
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23-
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24-
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25-
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26-
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27-
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28-
29-
30-
# from tasks.ant import Ant
311
from tasks.anymal import Anymal
32-
from tasks.aliengo import Aliengo
332
from tasks.anymal_terrain import AnymalTerrain
3+
from tasks.aliengo import Aliengo
344
from tasks.go1 import Go1
35-
# from tasks.ball_balance import BallBalance
36-
# from tasks.cartpole import Cartpole
37-
# from tasks.humanoid import Humanoid
385

396
# Mappings from strings to environments
407
isaacgym_task_map = {
41-
# "Ant": Ant,
428
"Anymal": Anymal,
43-
"Aliengo":Aliengo,
449
"AnymalTerrain": AnymalTerrain,
10+
"Aliengo":Aliengo,
4511
"Go1":Go1,
46-
# "BallBalance": BallBalance,
47-
# "Cartpole": Cartpole,
48-
# "Humanoid": Humanoid,
4912
}

0 commit comments

Comments
 (0)
0