Converting a Driving Scenario to occupancy grid map for path planning in Simulink
    11 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Somnath Mondal
 el 4 de Dic. de 2020
  
    
    
    
    
    Comentada: Shubham Dattatraya Gorde
 el 15 de Sept. de 2023
            I have created a driving scenario using driving scenario designer app and exported the model to Simulink, but I am unable to create an updating occupancy grid map from the scenaio reader and the vision detection generator. I want to use it for vehicle motion planning. There is matlab code to generate the occupancy grid map from the scenario matlab function, and I was thinking to create a matlab function block in Simulink for generating the map. Could you please let me know if there is any way I can feed the scenario and the sensor information from the scenario simulink model to such a function block?
2 comentarios
  Rolando Bautista Montesano
 el 8 de Dic. de 2020
				which is the function to create a grid from the scenario??
Regars
  Shubham Dattatraya Gorde
 el 15 de Sept. de 2023
				Hi Somnath, 
I was trying to implement the same , can you please help me, how did you created an updating occupancy grid map from scenario reader and vision detection generator? 
Thanks in advance. 
Regards,
Shubham.
Respuestas (1)
  Cameron Stabile
    
 el 11 de Dic. de 2020
        
      Editada: Cameron Stabile
    
 el 15 de Dic. de 2020
  
      Hi Somnath, Rolando
If I understand correctly, it appears you are trying to combine two separate examples: Create Egocentric Occupancy Map from Driving Scenario Designer and General Simulink Model of Scenario and Sensor. 
Currently there is no shipping function that will automatically create and update a map from scenario information, but you should be able to convert the first example script into a function with a bit of refactoring. The function does not need to create the scenario or do anything related to visualization, so the only things we need to worry about in this function are:
- Creation of the map object (see Create an Egocentric Occupancy Map)
 - Converting Obstacle and Lane Detections to occupied/unoccupied regions
 - Updating the map (see end of while loop)
 - Using the map
 
For inspiration on step 2, you may want to look at the exampleHelperGetObstacleDataFromSensor and exampleHelperFilterObstacles helper methods. These currently rely on scenario and sensor objects as inputs, but they really only need laneDetections, objectDetections, and the egoVehicle.
Best,
Cameron
Disclaimer: These are my own suggestions and do not represent formal guidance from The Mathworks
0 comentarios
Ver también
Categorías
				Más información sobre Scenarios in Simulink en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!