Skip to content

Commit

Permalink
Merge pull request #2357 from JdeRobot/issue-2350-pages
Browse files Browse the repository at this point in the history
Added getMap function
  • Loading branch information
ReyDoran authored Dec 12, 2023
2 parents 20310d3 + 2f21feb commit e178117
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _pages/exercises.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ feature_row:
order: 0;
version: "v3.2"

- image_path: /assets/images/exercises/laser_loc/montecarlo_laser_loc_teaser.png
- image_path: /assets/images/exercises/laser_loc/montecarlo_laser_loc_teaser.png
alt: "MonteCarlo Laser Loc (old version)"
title: "MonteCarlo Laser Loc (old version)"
excerpt: "Robot self-localization using particle filter and laser sensor"
Expand Down
3 changes: 2 additions & 1 deletion _pages/exercises/MobileRobots/montecarlo_laser_loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ while True:
* `HAL.setW()` - to set the angular velocity
* `HAL.setV()` - to set the linear velocity
* `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 [position_x, position_y, angle_in_degrees].
* `GUI.showPosition(pose)` - shows the estimated user position in the map view. It is necessary to pass a list with [position_x, position_y, angle_in_degrees]. The map view will also show the real position of the robot, so you can compare how good your algorithm is.
* `GUI.showPosition(pose)` - shows the estimated user position in the map view. It is necessary to pass a list with [position_x, position_y, angle_in_degrees]. The map view will also show the real position of the robot, so you can compare how good your algorithm is.
* `GUI.getMap('/RoboticsAcademy/exercises/static/exercises/vacuum_cleaner_loc_newmanager/resources/mapgrannyannie.png')` - Returns a numpy array with the image data in a 3 dimensional array (R, G, B, A).


## Theory
Expand Down

0 comments on commit e178117

Please sign in to comment.