Boid flocking simulation using gazebo simulator and ros
- Install ROS and gazebo
- Setup ROS workspace
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace # initialize your catkin workspace
- Compile the workspace of boid package
$ cd ~/catkin_ws/src
$ git clone https://gitlab.com/Sreevis/boid-simulation.git
$ catkin_make
- Source for
setup.bash
file for every new terminal
$ source devel/setup.bash
Launch the gazebo simulator with boid models.
$ roslaunch boid_gazebo swarm_in_gazebo.launch
Launch boid controller node
$ roslaunch boid_gazebo flocking.launch
To set another goal
rostopic pub /boid/set_goal geometry_msgs/Point "x: 3.0
y: 6.0
z: 9.0"