Skip to content

Commit 832e0ac

Browse files
committed
Rename "quad" to "legged"
1 parent 5c1f5f9 commit 832e0ac

File tree

76 files changed

+139
-139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+139
-139
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
1-
# quad_ros
1+
# legged_control
22

3-
I haven't had time to write the documentation yet. But I tried my best to keep the whole testing process as simple as possible. And did not change the code of ocs2 itself.
3+
I haven't had time to write the documentation yet. But I tried my best to keep the whole testing process as simple as
4+
possible. And did not change the code of ocs2 itself.
45

56
## Build
67

78
- ocs2 is a huge monorepo, you just need to compile ocs2_legged_robot_ros and its dependencies!
8-
- If you only run simulation, you do not need to compile unitree_hw of quad_ros;
9+
- If you only run simulation, you do not need to compile unitree_hw;
910

1011
## Quick Start
1112

1213
1. Set your robot type(a1 or aliengo) as an environment variable: ROBOT_TYPE
14+
1315
```
1416
export ROBOT_TYPE=a1
1517
```
1618

1719
2. Run the simulation:
20+
1821
```
1922
roslaunch unitree_description empty_world.launch
2023
```
24+
2125
3. Load the controller:
26+
2227
```
23-
mon launch quad_controllers load_controller.launch
28+
mon launch legged_controllers load_controller.launch
2429
```
30+
2531
4. You can start the controller using `rqt_controller_manager`
32+
2633
```
2734
sudo apt install ros-noetic-rqt-controller-manager
2835
rosrun rqt_controller_manager rqt_controller_manager
2936
```
37+
3038
5. After start the controller, you can command the robot by two terminal created by step 3.

quad_common/CMakeLists.txt renamed to legged_common/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(quad_common)
2+
project(legged_common)
33

44
## Use C++14
55
set(CMAKE_CXX_STANDARD 14)

quad_common/include/quad_common/hardware_interface/contact_sensor_interface.h renamed to legged_common/include/legged_common/hardware_interface/contact_sensor_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <hardware_interface/internal/hardware_resource_manager.h>
66
#include <hardware_interface/joint_state_interface.h>
77

8-
namespace quad_ros
8+
namespace legged
99
{
1010
class ContactSensorHandle
1111
{
@@ -43,4 +43,4 @@ class ContactSensorInterface
4343
{
4444
};
4545

46-
} // namespace quad_ros
46+
} // namespace legged

quad_common/include/quad_common/hardware_interface/hybrid_joint_interface.h renamed to legged_common/include/legged_common/hardware_interface/hybrid_joint_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <hardware_interface/internal/hardware_resource_manager.h>
66
#include <hardware_interface/joint_state_interface.h>
77

8-
namespace quad_ros
8+
namespace legged
99
{
1010
class HybridJointHandle : public hardware_interface::JointStateHandle
1111
{
@@ -113,4 +113,4 @@ class HybridJointInterface
113113
{
114114
};
115115

116-
} // namespace quad_ros
116+
} // namespace legged

quad_common/package.xml renamed to legged_common/package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<package format="2">
3-
<name>quad_common</name>
3+
<name>legged_common</name>
44
<version>0.0.0</version>
5-
<description>The quad_common package</description>
5+
<description>The legged_common package</description>
66

77
<maintainer email="[email protected]">qiayuan</maintainer>
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cmake_minimum_required(VERSION 3.1.3)
2-
project(quad_ros)
2+
project(legged_control)
33
find_package(catkin REQUIRED)
44
catkin_metapackage()

quad_ros/package.xml renamed to legged_control/package.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0"?>
22
<package format="2">
3-
<name>quad_ros</name>
3+
<name>legged_control</name>
44
<version>0.0.0</version>
5-
<description>Meta package that contains package of quad_ros.</description>
5+
<description>Meta package that contains package of legged.</description>
66
<maintainer email="[email protected]">Qiayuan Liao</maintainer>
77

88
<license>BSD</license>
99

10-
<url type="repository">https://github.com/qiayuanliao/quad_ros</url>
11-
<url type="bugtracker">https://github.com/qiayuanliao/quad_ros/issues</url>
10+
<url type="repository">https://github.com/qiayuanliao/legged_control</url>
11+
<url type="bugtracker">https://github.com/qiayuanliao/legged_control/issues</url>
1212

1313
<author email="[email protected]">Qiayuan Liao</author>
1414

quad_controllers/CMakeLists.txt renamed to legged_controllers/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(quad_controllers)
2+
project(legged_controllers)
33

44
## Use C++14
55
set(CMAKE_CXX_STANDARD 14)
@@ -11,8 +11,8 @@ add_definitions(-Wall)
1111
find_package(catkin REQUIRED
1212
COMPONENTS
1313
roscpp
14-
quad_common
15-
quad_wbc
14+
legged_common
15+
legged_wbc
1616
controller_interface
1717
ocs2_legged_robot_ros
1818
angles
@@ -28,8 +28,8 @@ catkin_package(
2828
${PROJECT_NAME}
2929
CATKIN_DEPENDS
3030
roscpp
31-
quad_common
32-
quad_wbc
31+
legged_common
32+
legged_wbc
3333
controller_interface
3434
ocs2_legged_robot_ros
3535
angles

0 commit comments

Comments
 (0)