Skip to content

Commit 87bb0da

Browse files
authored
Merge pull request #2897 from JdeRobot/montecarlo_visual_loc-gh-pages
Updating montecarlo visual loc pages
2 parents 3c0b5ba + eaab3a7 commit 87bb0da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_pages/exercises/ComputerVision/montecarlo_visual_loc.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ while True:
113113
* `HAL.setW()` - to set the angular velocity
114114
* `HAL.getPose3d().x` - to get the position of the robot (x coordinate)
115115
* `HAL.getPose3d().y` - to obtain the position of the robot (y coordinate)
116-
* `HAL.getPose3d().yaw` - to get the orientation of the robot with regarding the map
116+
* `HAL.getPose3d().yaw` - to get the orientation of the robot
117117
* `GUI.showImage()` - allows you to view a debug image or with relevant information
118-
* `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].
118+
* `GUI.showParticles(particles)` - shows the particles on the map. Accepts a list of particles as an argument. Each particle must be a list with [position_x, position_y, angle_in_radians, weight]. The values must be in gazebo world coordinate system.
119+
* `GUI.showPosition(x, y, yaw)` - shows the estimated user position in the map view in blue. Accepts a list with [position_x, position_y, angle_in_radians]. The values must be in gazebo world coordinate system. The map view will also show the real position of the robot in red, so you can compare how good your algorithm is.
119120

120121

121122
## Theory

0 commit comments

Comments
 (0)