ADD LICENSE

This commit is contained in:
fan-ziqi 2025-01-03 21:59:07 +08:00
parent 2dcd21ec72
commit 2599d2ba5b
28 changed files with 127 additions and 1 deletions

2
.github/LICENSE_HEADER.txt vendored Normal file
View File

@ -0,0 +1,2 @@
Copyright (c) 2024-2025 Ziqi Fan
SPDX-License-Identifier: Apache-2.0

25
.pre-commit-config.yaml Normal file
View File

@ -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)/

View File

@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2024 Fan Ziqi Copyright 2024-2025 Ziqi Fan
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef RL_REAL_HPP #ifndef RL_REAL_HPP
#define RL_REAL_HPP #define RL_REAL_HPP

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef RL_REAL_HPP #ifndef RL_REAL_HPP
#define RL_REAL_HPP #define RL_REAL_HPP

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef RL_SIM_HPP #ifndef RL_SIM_HPP
#define RL_SIM_HPP #define RL_SIM_HPP

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LOOP_H #ifndef LOOP_H
#define LOOP_H #define LOOP_H

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#include "observation_buffer.hpp" #include "observation_buffer.hpp"
ObservationBuffer::ObservationBuffer() {} ObservationBuffer::ObservationBuffer() {}

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef OBSERVATION_BUFFER_HPP #ifndef OBSERVATION_BUFFER_HPP
#define OBSERVATION_BUFFER_HPP #define OBSERVATION_BUFFER_HPP

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#include "rl_sdk.hpp" #include "rl_sdk.hpp"
/* You may need to override this Forward() function /* You may need to override this Forward() function

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef RL_SDK_HPP #ifndef RL_SDK_HPP
#define RL_SDK_HPP #define RL_SDK_HPP

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
a1_isaacgym: a1_isaacgym:
model_name: "model_0702.pt" model_name: "model_0702.pt"
framework: "isaacgym" framework: "isaacgym"

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
a1_isaacsim: a1_isaacsim:
model_name: "policy.pt" model_name: "policy.pt"
framework: "isaacsim" framework: "isaacsim"

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
go2_isaacgym: go2_isaacgym:
model_name: "himloco.pt" model_name: "himloco.pt"
framework: "isaacgym" framework: "isaacgym"

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
gr1t1_isaacgym: gr1t1_isaacgym:
model_name: "model_4000_jit.pt" model_name: "model_4000_jit.pt"
framework: "isaacgym" framework: "isaacgym"

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
gr1t2_isaacgym: gr1t2_isaacgym:
model_name: "model_4000_jit.pt" model_name: "model_4000_jit.pt"
framework: "isaacgym" framework: "isaacgym"

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
import os import os
import argparse import argparse
from matplotlib import pyplot as plt from matplotlib import pyplot as plt

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
import torch import torch
class ObservationBuffer: class ObservationBuffer:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
import torch import torch
import yaml import yaml
import os import os

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
import sys import sys
import os import os
import torch import torch

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#include "rl_real_a1.hpp" #include "rl_real_a1.hpp"
// #define PLOT // #define PLOT

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#include "rl_real_go2.hpp" #include "rl_real_go2.hpp"
// #define PLOT // #define PLOT

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#include "rl_sim.hpp" #include "rl_sim.hpp"
// #define PLOT // #define PLOT

View File

@ -1,3 +1,8 @@
/*
* Copyright (c) 2024-2025 Ziqi Fan
* SPDX-License-Identifier: Apache-2.0
*/
#include "robot_joint_controller.h" #include "robot_joint_controller.h"
#include <pluginlib/class_list_macros.h> #include <pluginlib/class_list_macros.h>

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
a1_gazebo: a1_gazebo:
# Publish all joint states ----------------------------------- # Publish all joint states -----------------------------------
joint_state_controller: joint_state_controller:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
go2_gazebo: go2_gazebo:
# Publish all joint states ----------------------------------- # Publish all joint states -----------------------------------
joint_state_controller: joint_state_controller:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
gr1t1_gazebo: gr1t1_gazebo:
# Publish all joint states ----------------------------------- # Publish all joint states -----------------------------------
joint_state_controller: joint_state_controller:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2024-2025 Ziqi Fan
# SPDX-License-Identifier: Apache-2.0
gr1t2_gazebo: gr1t2_gazebo:
# Publish all joint states ----------------------------------- # Publish all joint states -----------------------------------
joint_state_controller: joint_state_controller: