mirror of https://github.com/fan-ziqi/rl_sar.git
ADD LICENSE
This commit is contained in:
parent
2dcd21ec72
commit
2599d2ba5b
|
@ -0,0 +1,2 @@
|
|||
Copyright (c) 2024-2025 Ziqi Fan
|
||||
SPDX-License-Identifier: Apache-2.0
|
|
@ -0,0 +1,25 @@
|
|||
repos:
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||
rev: v1.5.1
|
||||
hooks:
|
||||
- id: insert-license
|
||||
files: \.(py|yaml)$
|
||||
args:
|
||||
# - --remove-header # Remove existing license headers. Useful when updating license.
|
||||
- --license-filepath
|
||||
- .github/LICENSE_HEADER.txt
|
||||
- --use-current-year
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||
rev: v1.5.1
|
||||
hooks:
|
||||
- id: insert-license
|
||||
files: \.(cpp|hpp)$
|
||||
args:
|
||||
# - --remove-header # Remove existing license headers. Useful when updating license.
|
||||
- --license-filepath
|
||||
- .github/LICENSE_HEADER.txt
|
||||
- --use-current-year
|
||||
- --comment-style
|
||||
- /*| *| */
|
||||
|
||||
exclude: ^(src/rl_sar/library/matplotlibcpp|src/rl_sar/library/unitree_legged_sdk_3.2|src/rl_sar/library/unitree_sdk2)/
|
|
@ -186,7 +186,7 @@
|
|||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2024 Fan Ziqi
|
||||
Copyright 2024-2025 Ziqi Fan
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef RL_REAL_HPP
|
||||
#define RL_REAL_HPP
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef RL_REAL_HPP
|
||||
#define RL_REAL_HPP
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef RL_SIM_HPP
|
||||
#define RL_SIM_HPP
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef LOOP_H
|
||||
#define LOOP_H
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "observation_buffer.hpp"
|
||||
|
||||
ObservationBuffer::ObservationBuffer() {}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef OBSERVATION_BUFFER_HPP
|
||||
#define OBSERVATION_BUFFER_HPP
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "rl_sdk.hpp"
|
||||
|
||||
/* You may need to override this Forward() function
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef RL_SDK_HPP
|
||||
#define RL_SDK_HPP
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
a1_isaacgym:
|
||||
model_name: "model_0702.pt"
|
||||
framework: "isaacgym"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
a1_isaacsim:
|
||||
model_name: "policy.pt"
|
||||
framework: "isaacsim"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
go2_isaacgym:
|
||||
model_name: "himloco.pt"
|
||||
framework: "isaacgym"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
gr1t1_isaacgym:
|
||||
model_name: "model_4000_jit.pt"
|
||||
framework: "isaacgym"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
gr1t2_isaacgym:
|
||||
model_name: "model_4000_jit.pt"
|
||||
framework: "isaacgym"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import os
|
||||
import argparse
|
||||
from matplotlib import pyplot as plt
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import torch
|
||||
|
||||
class ObservationBuffer:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import torch
|
||||
import yaml
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import sys
|
||||
import os
|
||||
import torch
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "rl_real_a1.hpp"
|
||||
|
||||
// #define PLOT
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "rl_real_go2.hpp"
|
||||
|
||||
// #define PLOT
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "rl_sim.hpp"
|
||||
|
||||
// #define PLOT
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2024-2025 Ziqi Fan
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "robot_joint_controller.h"
|
||||
#include <pluginlib/class_list_macros.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
a1_gazebo:
|
||||
# Publish all joint states -----------------------------------
|
||||
joint_state_controller:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
go2_gazebo:
|
||||
# Publish all joint states -----------------------------------
|
||||
joint_state_controller:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
gr1t1_gazebo:
|
||||
# Publish all joint states -----------------------------------
|
||||
joint_state_controller:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2024-2025 Ziqi Fan
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
gr1t2_gazebo:
|
||||
# Publish all joint states -----------------------------------
|
||||
joint_state_controller:
|
||||
|
|
Loading…
Reference in New Issue