Skip to content

Commit

Permalink
Apply PR 69 - mit-biomimetics#69
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSTerFPGA committed Oct 7, 2022
1 parent b01e54a commit 9f0b76b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Cheetah-Software
# Cheetah-Software
![Mini_on_stairs](https://user-images.githubusercontent.com/69251304/119980322-b4b7d400-bfee-11eb-9942-0f10758e8b6b.png)
This repository contains the Robot and Simulation software project. For a getting started guide, see the documentation folder.

The common folder contains the common library with dynamics and utilities
Expand All @@ -7,6 +8,16 @@ The robot folder will contain the robot program
The sim folder will contain the simulation program. It is the only program which depends on QT.
The third-party will contain *small* third party libraries that we have modified. This should just be libsoem for Cheetah 3, which Pat modified at one point.

## Load Map
Although real time height map is also available in this project, I use a saved stairs height map as the example. If you are interested in real time mapping and locomotion, you can develop your own cheetah on this project.

To load height map and traversability score map, you need to use a ROS repository named [camera_heightmap](https://github.com/AWang-Cabin/camera_heightmap.git)
```
cd catkin_ws
catkin_make
roslaunch camera_heightmap hsload.launch
```

## Build
To build all code:
```
Expand Down
4 changes: 2 additions & 2 deletions user/MIT_Controller/FSM_States/FSM_State_BalanceStand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void FSM_State_BalanceStand<T>::onEnter() {

// Always set the gait to be standing in this state
this->_data->_gaitScheduler->gaitData._nextGait = GaitType::STAND;

_ini_body_pos = (this->_data->_stateEstimator->getResult()).position;
// rpy is defined in world frame, but robot need rpy in body frame here
_ini_body_pos = (this->_data->_stateEstimator->getResult()).rBody * (this->_data->_stateEstimator->getResult()).position;

if(_ini_body_pos[2] < 0.2) {
_ini_body_pos[2] = 0.3;
Expand Down

0 comments on commit 9f0b76b

Please sign in to comment.