https://github.com/misprit7/enph353-lab6
https://github.com/misprit7/enph353-lab6
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/misprit7/enph353-lab6
- Owner: misprit7
- Created: 2021-10-21T02:44:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-21T02:47:22.000Z (over 3 years ago)
- Last Synced: 2025-01-14T06:53:13.423Z (5 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An OpenAI gym extension for using Gazebo known as `gym-gazebo`
**`gym-gazebo` is a complex piece of software for roboticists that puts together simulation tools, robot middlewares (ROS, ROS 2), machine learning and reinforcement learning techniques. All together to create an environment whereto benchmark and develop behaviors with robots. Setting up `gym-gazebo` appropriately requires relevant familiarity with these tools.**
## Installation
Refer to [INSTALL.md](INSTALL.md)## Usage
### Build and install gym-gazebo
In the root directory of the repository:
```bash
sudo pip install -e .
```### Running an environment
To run the cartpole environment go to directory where gym-gazebo is contained, then run:
```
source enph353_gym-gazebo/gym_gazebo/envs/ros_ws/devel/setup.bash
cd enph353_gym-gazebo/examples/gazebo_cartpole
python gazebo_cartpole_v0.py
```To run the robot environment go to directory where gym-gazebo is contained, then run:
```
source enph353_gym-gazebo/gym_gazebo/envs/ros_ws/devel/setup.bash
cd enph353_gym-gazebo/examples/adeept_awr
python enph_ai_adeept_awr_empty_qlearn.py
```### Killing background processes
Sometimes, after ending or killing the simulation `gzserver` and `rosmaster` stay on the background, make sure you end them before starting new tests.
We recommend creating an alias to kill those processes.
```bash
echo "alias killgazebogym='killall -9 rosout roslaunch rosmaster gzserver nodelet robot_state_publisher gzclient'" >> ~/.bashrc
```
# enph353-lab6
# enph353-lab6