[SOLVED] CS === Introduction ===

$25

File Name: CS__===_Introduction_===.zip
File Size: 226.08 KB

5/5 - (1 vote)

=== Introduction ===

The assignment is broken up into two parts.
Create a SLAM implementation to process a series of landmark (gem) measurements and movement updates.

Copyright By Assignmentchef assignmentchef

The movements are defined for you so there are no decisions for you to make, you simply process the movements
given to you.
Hint: A planner with an unknown number of motions works well with an online version of SLAM.
Here you will create the action planner for the robot.The returned actions will be executed with the goal
being to navigate to and extract a list of needed gems from the environment.You will earn points by
successfully extracting the list of gems from the environment. Extraction can only happen if within the
minimum distance of 0.15.
Example Actions (more explanation below):
move 3.14 1
extract B 1.5 -0.2
Note: All of your estimates should be given relative to your robots starting location.
Start position
The robot will land at an unknown location on the map, however, you can represent this starting location
as (0,0), so all future robot location estimates will be relative to this starting location.
Measurements
Measurements will come from gems located throughout the terrain.
* The format is {landmark id:{distance:0.0, bearing:0.0, type:D}, }
Only gems that have not been collected and are within the horizon distance will return measurements.
Movements
Action: move 1.570963 1.0
* The robot will turn counterclockwise 90 degrees and then move 1.0
Movements are stochastic due to, well, it being a robot.
If max distance or steering is exceeded, the robot will not move.
Needed Gems
Provided as list of gem types: [A, B, L, ]
Although the gem names arent real, as a convenience there are 26 total names, each represented by an
upper case letter of the alphabet (ABC).
Action: extract
* The robot will attempt to extract a specified gem from the current location..
When a gem is extracted from the terrain, it no longer exists in the terrain, and thus wont return a
measurement.
The robot must be with 0.15 distance to successfully extract a gem.
There may be gems in the environment which are not required to be extracted.
The robot will always execute a measurement first, followed by an action.
The robot will have a time limit of 5 seconds to find and extract all of the needed gems.

from typing import Dict, List

class SLAM:
Create a basic SLAM module.

def __init__(self):
Initialize SLAM components here.

# Provided Functions
def get_coordinates_by_landmark_id(self, landmark_id: str):
Retrieves the x, y locations for a given landmark

landmark_id: The id for a processed landmark

the coordinates relative to the robots frame with an initial position of 0.0

return 0.0, 0.0

def process_measurements(self, measurements: Dict):
Process a new series of measurements.

measurements: Collection of measurements
in the format {landmark id:{distance:0.0, bearing:0.0, type:B}, }

x, y: current belief in location of the robot

return 0.0, 0.0

def process_movement(self, steering: float, distance: float):
Process a new movement.

steering: amount to turn
distance: distance to move

x, y: current belief in location of the robot

return 0.0, 0.0

class GemExtractionPlanner:
Create a planner to navigate the robot to reach and extract all the needed gems from an unknown start position.

def __init__(self, max_distance: float, max_steering: float):
Initialize your planner here.

max_distance: the max distance the robot can travel in a single move.
max_steering: the max steering angle the robot can turn in a single move.

def next_move(self, needed_gems: List[str], measurements: Dict):
Next move based on the current set of measurements.
needed_gems: List of gems remaining which still need to be found and extracted.
measurements: Collection of measurements from gems in the area.
{landmark id: {
distance: 0.0,
bearing : 0.0,
type:B
Return: action: str, points_to_plot: dict [optional]
action (str): next command to execute on the robot.
move 1.570963 1.0 Turn left 90 degrees and move 1.0 distance.
extract B 1.5 -0.2 [Part B] Attempt to extract a gem of type B from your current location.
This will succeed if the specified gem is within the minimum sample distance.
points_to_plot (dict): point estimates (x,y) to visualize if using the visualization tool [optional]
self represents the robot estimated position
represents the estimated position for a certain landmark
self: (x, y),
: (x1, y1),
: (x2, y2),

return , {}

def who_am_i():
# Please specify your GT login ID in the whoami variable (ex: jsmith123).
whoami =
return whoami

CS: assignmentchef QQ: 1823890830 Email: [email protected]

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS === Introduction ===
$25