- Clone the rosev3
$ cd ~/
$ git clone https://github.com/YI-LING-BA-JI-JHUAN-TI-SHENG/rosev3.git
- Set the ROS master URI
$ vim ~/rosev3/gripp3r/.env
- Input string as following example.
- Please replace xxx with your static ip and port.
MASTER_URI=http://xxx.xxx.xxx.xxx:xxx
- eth0: Local Area Network, connect to the AP with a cable.
- eth1: Static IP, connect to the router with a cable.
- Run roscore (terminal 1)
- Connect to ev3 robot (terminal 2)
- Open ev3 manager (terminal 2)
- Run docker (terminal 3)
$ cd ~/rosev3/gripp3r/
$ sudo sh rosini.sh
- Wait connection
- Wait terminal 2 to finished running launch file
- Open simulation and control environment
- (a) Use gazebo to open a world (terminal 4)
$ roslaunch robot_simulation_pkg simulation.launch
- (b) Navigation (terminal 5)
$ roslaunch robot_navigation_pkg multi_navigation.launch
- (c) Open central control node (terminal 6)
$ roslaunch central_control_pkg multi_control.launch
- (d) Run converter (terminal 7)
$ roslaunch robot_converter_pkg vel_converter.launch
- (e) Publish a test instruction (terminal 8)
$ rostopic pub /speaker std_msgs/String 3:a
- Close docker (terminal 3)
$ cd ~/rosev3/gripp3r/
$ sudo sh down.sh