[SOLVED] 代写 Modern vehicles (cars, industrial trucks, planes, robots, …) have camera, infrared, laser, radar, … sensors to continuously scan obstacles in the direction of movement. Their data are needed for distance, collision avoidance, breaking assistance, … systems. In this task a simplified version of obstacles shall be modeled by points detected by an imaginary sensor system placed in the front and middle of the vehicle as origin of a relative local two dimensional cartesian coordinate system. Arbitrary many of such obstacles/points in front of a vehicle shall be stored in a list. This list shall be sorted by the Euclidian distance from the origin (see picure above and examples below).

30 $

File Name: 代写_Modern_vehicles_(cars,_industrial_trucks,_planes,_robots,_…)_have_camera,_infrared,_laser,_radar,_…_sensors_to_continuously_scan_obstacles_in_the_direction_of_movement._Their_data_are_needed_for_distance,_collision_avoidance,_breaking_assistance,_…_systems._In_this_task_a_simplified_version_of_obstacles_shall_be_modeled_by_points_detected_by_an_imaginary_sensor_system_placed_in_the_front_and_middle_of_the_vehicle_as_origin_of_a_relative_local_two_dimensional_cartesian_coordinate_system._Arbitrary_many_of_such_obstacles/points_in_front_of_a_vehicle_shall_be_stored_in_a_list._This_list_shall_be_sorted_by_the_Euclidian_distance_from_the_origin_(see_picure_above_and_examples_below)..zip
File Size: 6594 KB

SKU: 5488358241 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Modern vehicles (cars, industrial trucks, planes, robots, …) have camera, infrared, laser, radar, … sensors to continuously scan obstacles in the direction of movement. Their data are needed for distance, collision avoidance, breaking assistance, … systems. In this task a simplified version of obstacles shall be modeled by points detected by an imaginary sensor system placed in the front and middle of the vehicle as origin of a relative local two dimensional cartesian coordinate system. Arbitrary many of such obstacles/points in front of a vehicle shall be stored in a list. This list shall be sorted by the Euclidian distance from the origin (see picure above and examples below).
Subtask 1
To simply identify them each obstacle/point shall store a string (“A”, “B”, … in example above), its coordinate (x, y) in the local coordinate system and its distance to the origin. Write a type definition for a structure with these four data as well as a pointer to the next list element as components/variables of the structure.
Subtask 2
Write a function to calculate the Euclidian distance d of two obstacles/points P1 and P2 with
coordinates (x1,y1)(x1,y1) and (x2,y2)(x2,y2) by the formula: and return d as function value.
Subtask 3
Write a function with a list of obstacles/points as first and one obstacle/point as second parameter calculating the neareast other obstacle/point to it and returning it as pointer. Take care that an obstacle/point does not return itself (distance 0) as well as that at least two obstacles/points need to exist, otherwise a null pointer nullptr shall be returned.
Subtask 4
Write a function with a list of obstacles/points sorted by distance from the origin of the coordinate system as first parameter and a pointer to a new obstacle/point as second parameter. In its body insert sorted this new obstacle/point into the list and return a pointer to the (new) head of the list of obstacles/points.

Subtask 5
Write a function to output formatted the list of obstacles/points (all numbers with six characters and two digits after decimal point). Beside the identifying string of the obstacle/point, its coordinates and its distance additionally the nearest neighbour obstacle/point to it shall be found and outputted (for each call the function from subtask 3; see example below).
Subtask 6
Write a function to delete the whole list of all obstacles/points completely on the heap.
Subtask 7
n a loop in function main arbitrary many of such obstacles/points shall be inputted and stored in a list sorted by distance in ascending order – call for each inputted obstacle/point the function from subtask 4. After the end of input output the list by calling the function from subtask 5. Last delete the whole list by calling the function from subtask 6.

Reviews

There are no reviews yet.

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

Shopping Cart
[SOLVED] 代写 Modern vehicles (cars, industrial trucks, planes, robots, …) have camera, infrared, laser, radar, … sensors to continuously scan obstacles in the direction of movement. Their data are needed for distance, collision avoidance, breaking assistance, … systems. In this task a simplified version of obstacles shall be modeled by points detected by an imaginary sensor system placed in the front and middle of the vehicle as origin of a relative local two dimensional cartesian coordinate system. Arbitrary many of such obstacles/points in front of a vehicle shall be stored in a list. This list shall be sorted by the Euclidian distance from the origin (see picure above and examples below).
30 $