This is sequence of my small works from univercity. It's about how to make robot in ROS from scratch and how to make it do some simple actions. Also it tells about how to implement trust and reputation algorithm via nodes.
The first thing that I've done was a simple robot model with four wheels (you can do it using primary shaoes like cilinders and rectangle) and added joints between parts of robot to make it able to move. To make it look more friendly, I added some textures.
After making the model I built some barriers for robot and installed "Teleop twist keyboard" package to make robot move via keys. My model wasn't able to move because I made it in sdf format, but this package suit to urdf models, so I had to found someone's urdf robot.
I added package for scripts in project and wrote the first one to make robot move to given coordinates.
After this I used lidar from this snatched model and made some big fences. My goal was made robot feel these walls and bypass them. So, I started use lidar readings. The point of my algorithm is: check barrier, do 90deg rotation and a few steps, and return. After this check barriers again and do this cycle untill robot leave the barrier zone. After this it can continue move to coordinates. The code of this script is in the file.
The last thind I did is trust and reputation model. I added one big truck as a barrier and made three robots standing in front of it. Two of them tell the truth about the barrier and one is lying. So, the point is to calculate reputation of every robot to understand which of them you can trust. The scripts (for impostor and for normal robots) isn't too complicated. I transfered information between them via their nodes and compared readings from lidar for each from each. So, this is what i got.