webots_ros2 icon indicating copy to clipboard operation
webots_ros2 copied to clipboard

How to add Radar sensor to TeslaModel3?

Open sachinkum0009 opened this issue 8 months ago • 3 comments

Discussed in https://github.com/cyberbotics/webots_ros2/discussions/876

Originally posted by sachinkum0009 December 18, 2023 Hello,

I want to add Radar Sensor to TeslaModel3. I tried to follow link

But still it doesn't show the target ros2 topic.

Here is the code

TeslaModel3 {
  translation 31.4381 47.0076 0.400134
  rotation 0 0 1 3.1415
  controller "<extern>"
  sensorsSlotFront [
    Camera {
      translation -2.12 0 0.93
      fieldOfView 1
      width 360
      height 240
      recognition Recognition {
        occlusion 0
        frameThickness 0
        segmentation TRUE
      }
    }
    Radar {
      translation -2.12 0 0.93
      minRange               1       # [0, maxRange)
      maxRange               50.0    # (minRange, inf)
      horizontalFieldOfView  0.78    # [0, pi]
      verticalFieldOfView    0.1     # [0, pi]
      minAbsoluteRadialSpeed 0.0     # [0, inf)
      minRadialSpeed         1       # [0, maxRadialSpeed]
      maxRadialSpeed         -1      # {-1, [minRadialSpeed, inf)}
      cellDistance           0.0     # [0, inf)
      cellSpeed              0.0     # [0, inf)
      rangeNoise             0.0     # [0, inf)
      speedNoise             0.0     # [0, inf)
      angularNoise           0.0     # [0, inf)
      antennaGain            20.0    # (-inf, inf)
      frequency              24.0    # [0, inf)
      transmittedPower       1.0     # (-inf, inf)
      minDetectableSignal    -100    # (-inf, inf)
      occlusion              FALSE   # {TRUE, FALSE}
    }
    GPS {
    }
  ]
    
}

ROS2 topics list

/Ros2Supervisor/remove_node
/clock
/cmd_ackermann
/parameter_events
/remove_urdf_robot
/rosout
/vehicle/antifog_lights
/vehicle/backwards_lights
/vehicle/brake_lights
/vehicle/camera/camera_info
/vehicle/camera/image_color
/vehicle/camera/recognitions
/vehicle/camera/recognitions/webots
/vehicle/front_lights
/vehicle/gps
/vehicle/gps/speed
/vehicle/gps/speed_vector
/vehicle/left_indicators
/vehicle/rear_lights
/vehicle/right_indicators

I am very confused. Please help me with this issue.

Thanks in advance :pray:

sachinkum0009 avatar Dec 19 '23 10:12 sachinkum0009