- random walk # TODO
- Preemptive
- Ubuntu14.04 LTS with ROS indigo installed(Run roscore on your laptop)
- ev3dev with Ros_comm installed (Run ros nodes in Lego EV3 Robotics)
It may cost you much time to write ros_comm to ev3dev, you can contact me to get the *.img file.
$ source /opt/ros/indigo/setup.bash
Run those command in the terminal of your lego ev3dev system:
# change address to your laptop ipv4 address
$ export ROS_MASTER_URI=http://192.168.1.101:11311
$ export ROS_IP=`hostname -I`
$ roscore
$ python src/swarm_robotics/scripts/listener.py
$ rosrun rqt_graph rqt_graph
$ rqt_console
Do not open your IR Beacon before your robotics bagin to run, prevent robotics send message too early that some robotics who start lately cannot receive messages others send before.
You should compile your program before your first running.
Your laptop and your robotics should connect to the same wireless network, if not they cannot find each other.