沙司麻酱 2024-03-25 22:37 采纳率: 0%
浏览 6

华为SMARTS平台样例仿真问题

在华为SMARTS平台上运行样例,出现一下错误,但是运行e2_simple_agent的时候正常运行了。
错误如下所示

(.venv) dm@ubuntu:~/SMARTS$ scl run --envision examples/e3_multi_agent.py scenarios/sumo/loop
/home/dm/SMARTS/smarts/core/default_map_builder.py:159: UserWarning: A map source for road surface generation can not be resolved from the given reference: `scenarios/sumo/loop/build`.
  warnings.warn(
/home/dm/SMARTS/smarts/core/default_map_builder.py:159: UserWarning: A map source for road surface generation can not be resolved from the given reference: `scenarios/sumo/loop/build/social_agents`.
  warnings.warn(
/home/dm/SMARTS/smarts/core/default_map_builder.py:159: UserWarning: A map source for road surface generation can not be resolved from the given reference: `scenarios/sumo/loop/build/traffic`.
  warnings.warn(
/home/dm/SMARTS/smarts/core/default_map_builder.py:159: UserWarning: A map source for road surface generation can not be resolved from the given reference: `scenarios/sumo/loop/build/map`.
  warnings.warn(
╭────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────╮
│            Episode │     Sim T / Wall T │        Total Steps │        Steps / Sec │       Scenario Map │    Scenario Routes │     Mission (Hash) │             Scores │
├────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┤
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
/home/dm/SMARTS/smarts/core/actor_capture_manager.py:112: UserWarning: Unable to capture for social-agent-all-keep-lane-agent because social agent id capture not yet implemented.
  warnings.warn(
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 2 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 21/100.191001.87 │               loop │      basic.rou.xml │ 46669744002046609019.43 - Agent 2 │
│                    │                    │                    │                    │                    │                    │                    │    56.92 - Agent 3 │
│                    │                    │                    │                    │                    │                    │                    │   103.56 - Agent 1 │
│                    │                    │                    │                    │                    │                    │                    │    56.84 - Agent 0WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 
WARNING:SMARTS:Attempted to perform actions on non-existing agent, Agent 0 

  • 写回答

1条回答 默认 最新

  • 码农阿豪 Java领域优质创作者 2024-03-25 22:37
    关注
    让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
    问题:在华为SMARTS平台上运行样例,出现关于地图资源的警告,同时出现了尝试对不存在的智能体执行动作的警告。但是运行e2_simple_agent的时候正常运行了。 解答:该错误是因为平台无法找到指定的地图资源。可能是由于文件路径指向错误或文件不存在所导致的。建议使用正确的路径或者确认文件是否存在来解决该问题。 另外,运行时出现了对不存在的智能体执行动作的警告,可能是由于智能体程序中有些代码没有正确执行而导致的。需要检查程序中是否正确初始化了所有智能体,并确认代码是否正确执行。 案例:使用try/except语句捕获警告信息,并对错误进行处理,例如日志记录。 代码实现示例:
    import logging
    try:
        # 程序代码
    except UserWarning as e:
        # 处理警告信息
        logging.warning(str(e))
    
    评论

报告相同问题?

问题事件

  • 创建了问题 3月25日

悬赏问题

  • ¥15 apk可以在模拟器上正常安装使用,但是手机上无法正常安装
  • ¥15 office打开卡退(新电脑重装office系统后)
  • ¥300 FLUENT 火箭发动机燃烧EDC仿真
  • ¥15 【Hadoop 问题】Hadoop编译所遇问题hadoop-common: make failed with error code 2
  • ¥15 vb6.0+webbrowser无法加载某个网页求解
  • ¥15 RPA财务机器人采购付款流程
  • ¥15 计算机图形多边形及三次样条曲线绘制
  • ¥15 根据protues画的图用keil写程序
  • ¥200 如何使用postGis实现最短领规划?
  • ¥15 pyinstaller打包错误