Skip to content

Issue when run the testing fileย #1

@ZhenyuSun-Walker

Description

@ZhenyuSun-Walker

Thanks for your contribution! However, I met in difficulties when running the command:

bash bash_files/testing/speed_curvature_CoT_concise_image_intent_2agent.sh

The information is shown as below:

> Running the route                                                                                                                   
[0.05000000074505806] Exception in run_step: 'VLM_Infer' object has no attribute 'run_step'                                           
Traceback (most recent call last):                                                                                                    
  File "/home/szy/Projects/LangCoop/simulation/leaderboard/team_code/vlm_agent.py", line 505, in run_step                             
    control = self.infer.run_step(input_data, timestamp, **kwargs)                                                                    
AttributeError: 'VLM_Infer' object has no attribute 'run_step'                                                                        
                                                                                                                                      
Stopping the route, the agent has crashed:                                                                                            
> object of type 'VehicleControl' has no len()                                                                                        
                                                                                                                                      
Traceback (most recent call last):                                                                                                    
  File "/home/szy/Projects/LangCoop/simulation/leaderboard/leaderboard/scenarios/scenario_manager.py", line 193, in _tick_scenario    
    ego_action = self._agent()                                                                                                        
  File "/home/szy/Projects/LangCoop/simulation/leaderboard/leaderboard/autoagents/agent_wrapper.py", line 110, in __call__            
    return self._agent()                                                                                                              
  File "/home/szy/Projects/LangCoop/simulation/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 119, in __call__         
    for i in range(len(control)):                                                                                                     
TypeError: object of type 'VehicleControl' has no len()                                                                               
                                                                                                                                      
During handling of the above exception, another exception occurred:                                                                   
                                                                                                                                      
Traceback (most recent call last):                                                                                                    
  File "simulation/leaderboard/leaderboard/leaderboard_evaluator_parameter.py", line 495, in _load_and_run_scenario                   
    self.manager.run_scenario()                                                                                                       
  File "/home/szy/Projects/LangCoop/simulation/leaderboard/leaderboard/scenarios/scenario_manager.py", line 172, in run_scenario      
    self._tick_scenario(timestamp)                                                                                                    
  File "/home/szy/Projects/LangCoop/simulation/leaderboard/leaderboard/scenarios/scenario_manager.py", line 200, in _tick_scenario    
    raise AgentError(e)                                                                                                               
leaderboard.autoagents.agent_wrapper.AgentError: object of type 'VehicleControl' has no len()                                         
> Stopping the route                                                                                                                  
                                                                                                                                      
========= Results of RouteScenario_1 (repetition 0) ------ FAILURE =========                   

How to tackle with the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions