ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.26k stars 9.72k forks source link

变量is_virtual_ 判断存在bug #15477

Closed zhaofuxie closed 4 months ago

zhaofuxie commented 4 months ago

Describe the bug A clear and concise description of what the bug is. string 类型变量与 int 类型变量之间无法按设计需求进行逻辑比较 To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen. isvirtual = (std::stoi(perception_obstacle.id()) < 0);

Screenshots If applicable, add screenshots to help explain your problem. modules/planning/common/obstacle.cc image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

zhaofuxie commented 4 months ago

I make mistake,