Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update setup tutorials #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,36 @@
4. Install rosbridge-suite
```
$ sudo apt-get install ros-<distro>-rosbridge-server
```
- Note that if you are using VirtualBox, you will need to do some addition [steps](https://github.com/siemens/ros-sharp/wiki/User_Inst_UbuntuOnOracleVM).

5. Clone this repository
- Install `git` and `git-lfs` if you haven't
- `cd` to the `catkin` source folder
```
5. [New version unity](https://drive.google.com/drive/folders/1V4V5Qegb8DfxDpzpgH0b572IA_mUgXBP?usp=sharing)
$ cd ~/catkin_ws/src
```
- `clone` the repo
```
$ git clone https://github.com/fpt-corp/ROS_Package_example [(optional) shorter_file_name]
```
6. `make` the `src` and run some ros nodes
- `cd` back to the workspace
```
$ cd ~/catkin_ws
```
- `make` the `src`
```
$ catkin_make
```
- Add the maked `src` to the terminal
```
$ source devel/setup.bash
```
+ You will need to run these steps everytime you change "something".
- Launch ros nodes
```
$ roslaunch lane_detect lane_detect.launch
```
- You will need to leave this terminal as it is in order to run the simulator.
- Now, let's run the [simulator](unity/README.md).
30 changes: 18 additions & 12 deletions unity/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
B1. Chạy câu lệnh sau để khởi động sever:
## Requirements
- Completed previous [guides](../README.md).
- OpenGL 3.2 or later
- If you are using VirtualBox, you will not able to run this program yet because VirtualBox only support OpenGL 2.x
- If you are using any virtual machine other than VirtualBox, you may not able to setup these [steps](https://github.com/siemens/ros-sharp/wiki/User_Inst_UbuntuOnOracleVM) although they may not suffer OpenGL problem.

$ roslaunch lane_detect lane_detect.launch

B2. Bật app unity, điền đầy đủ thông tin và ấn Connect.

- Tên đội: Team1
- IP: ws://127.0.0.1:9090 hoặc ip của máy chủ ROS_MASTER

chú ý: để chạy được xe cần 3 topic. đổi tên topic theo tên đội và make lại bằng catkin_make
- /Team1_speed : topic truyền tốc độ từ thuật toán lên xe để chạy
- /Team1_steerAngle : Topic truyền góc lái cho xe
- /Team1_image : Topic cho các đội thi subcriber ảnh từ phần mềm mô phỏng
## Installation
- If your `test.x86_64` file is just a text file looks similar like this
```
version https://git-lfs.github.com/spec/v1
oid sha256:4882eb05e85521b333621a15f0f76083c45ae66f869557d5d6c4838ffe8e3930
size 100719740
```
then you will need to run the following comand to get the actual file because `git clone` hasn't `pull` this file down for you yet.
```
$ git lfs pull --include "test.x86_64"
```
or you can download the [file](https://github.com/fpt-corp/ROS_Package_example/blob/master/unity/test.x86_64) directly from github and put it wherever you want.
-
13 changes: 13 additions & 0 deletions unity/README.vn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
B1. Chạy câu lệnh sau để khởi động sever:

$ roslaunch lane_detect lane_detect.launch

B2. Bật app unity, điền đầy đủ thông tin và ấn Connect.

- Tên đội: Team1
- IP: ws://127.0.0.1:9090 hoặc ip của máy chủ ROS_MASTER

chú ý: để chạy được xe cần 3 topic. đổi tên topic theo tên đội và make lại bằng catkin_make
- /Team1_speed : topic truyền tốc độ từ thuật toán lên xe để chạy
- /Team1_steerAngle : Topic truyền góc lái cho xe
- /Team1_image : Topic cho các đội thi subcriber ảnh từ phần mềm mô phỏng