Skip to content

Commit

Permalink
Update montecarlo_visual_loc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ango1994 authored Nov 22, 2023
1 parent a80c86e commit 9c73717
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions _pages/exercises/ComputerVision/montecarlo_visual_loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,14 @@ while True:
* `from HAL import HAL` - to import the HAL library class. This class contains the functions that receives information from the webcam.
* `from GUI import GUI` - to import the GUI (Graphical User Interface) library class. This class contains the functions used to view the debugging information, like image widgets.
* `HAL.getImage()` - to get the image
* `HAL.motors.sendV()` - to set the linear speed
* `HAL.motors.sendW()` - to set the angular velocity
* `HAL.setV()` - to set the linear speed
* `HAL.setW()` - to set the angular velocity
* `HAL.getPose3d().x` - to get the position of the robot (x coordinate)
* `HAL.getPose3d().y` - to obtain the position of the robot (y coordinate)
* `HAL.getPose3d().yaw` - to get the orientation of the robot with regarding the map
* `GUI.showImage()` - allows you to view a debug image or with relevant information
* `GUI.showParticles(particles)` - shows the particles on the map. It is necessary to pass a list of particles as an argument. Each particle must be a list with [positionx, positiony, angle].
* `GUI.showPose3D(pose)` - shows the estimated position in the 3D viewer. It is necessary to pass a list with [positionx, positiony, positionz]. The 3D viewer will also show the real position of the robot, so you can compare how good your algorithm is.


## Theory

Expand Down

0 comments on commit 9c73717

Please sign in to comment.