lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.29k stars 780 forks source link

imu data not publishing #710

Closed ajay1606 closed 4 years ago

ajay1606 commented 4 years ago

Thanks to LGSVL for an updated version of the simulator package. I have a few quick questions regarding simulator sensor data output to verify with the Autoware.

Working environment: Linux 16.04 (ROS Kinetic) LGSVL 2020.01 (released version)

  1. command rostopic list output following topics: /client_count /connected_clients /imu_raw /nmea_sentence /odom /points_raw /rosout /rosout_agg /simulator/camera_node/image/compressed But there are no any data publishing in the topic /imu_raw

  2. Raw points data are getting at /points_raw topic, but the output rate of is less than 5hz.

Could you please help me to figure out how to get imu_raw data and points_raw at 10 hz frequency.

Kind regards,

EricBoiseLGSVL commented 4 years ago

@hadiTab isn't this an issue with ROS?

hadiTab commented 4 years ago

@ajay1606 what sensors do you have on the vehicle? Is it the default Autoware car? Also what are the specs of the computer you are running it on?

Do you get any errors when you try to echo imu_raw?

ajay1606 commented 4 years ago

@EricBoiseLGSVL & @hadiTab Thanks for your quick response. Currently am running LGSVL with Autoware with following specifications

OS: Ubuntu 16.04 (32GB RAM, Graphics card Titan Xp) ROS: kinetic

Simulation setup: Screenshot from 2020-04-07 15-02-16 Vehicle and map setup: Screenshot from 2020-04-07 14-59-32 Rosbridge connection status: Screenshot from 2020-04-07 14-53-46 $rostopic list output: Screenshot from 2020-04-07 15-04-13 $rostopic echo /poinst_raw output: Screenshot from 2020-04-07 14-56-47 $rostopic echo /imu_raw output: Screenshot from 2020-04-07 14-56-57 $rostopic hz /points_raw Screenshot from 2020-04-07 14-57-29 $rostopic hz /imu_raw Screenshot from 2020-04-07 14-57-55

Jason format:

[{"type": "GPS Device", "name": "GPS",
            "params": {"Frequency": 12.5, "Topic": "/nmea_sentence", "Frame": "gps", "IgnoreMapOrigin": true},
            "transform": {"x": 0, "y": 0, "z": 0, "pitch": 0, "yaw": 0, "roll": 0}},{"type": "GPS Odometry", "name": "GPS Odometry",
            "params": {"Frequency": 12.5, "Topic": "/odom", "Frame": "gps", "IgnoreMapOrigin": true},
            "transform": {"x": 0, "y": 0, "z": 0, "pitch": 0, "yaw": 0, "roll": 0}},{"type": "IMU", "name": "IMU",
            "params": {"Topic": "/imu_raw", "Frame": "imu"},
            "transform": {"x": 0, "y": 0, "z": 0, "pitch": 0, "yaw": 0, "roll": 0}},{"type": "Lidar", "name": "Lidar",
            "params": {"LaserCount": 32, "MinDistance": 0.5, "MaxDistance": 100, "RotationFrequency": 10, "MeasurementsPerRotation": 360, "FieldOfView": 41.33, "CenterAngle": 10, "Compensated": true, "PointColor": "#ff000000", "Topic": "/points_raw", "Frame": "velodyne"},
            "transform": {"x": 0, "y": 2.312, "z": -0.3679201, "pitch": 0, "yaw": 0, "roll": 0}},{"type": "Color Camera", "name": "Main Camera",
            "params": {"Width": 1920, "Height": 1080, "Frequency": 15, "JpegQuality": 75, "FieldOfView": 50, "MinDistance": 0.1, "MaxDistance": 1000, "Topic": "/simulator/camera_node/image/compressed", "Frame": "camera"},
            "transform": {"x": 0, "y": 1.7, "z": -0.2, "pitch": 0, "yaw": 0, "roll": 0}},{"type": "Keyboard Control", "name": "Keyboard Car Control"},{"type": "Wheel Control", "name": "Wheel Car Control"},{"type": "Vehicle Control", "name": "Autoware Car Control",
            "params": {"Topic": "/vehicle_cmd"} }]

Kind Regards Ajay

EricBoiseLGSVL commented 4 years ago

@ajay1606 Can you post player.log as well as any error msg from imu_raw please

ajay1606 commented 4 years ago

@EricBoiseLGSVL I could not find the player.log file in the location: /.config/unity3d/LG Silicon Valley Lab/ Also, sometimes I observe very strangely /imu_raw publish and pause as shown in the shared video

hadiTab commented 4 years ago

@ajay1606 the rosbridge for ros kinetic has a lot of performance issues. Ros melodic's rosbridge does a much better job, but you can't install it on your host machine because it requires ubuntu 18.04. You can run it through docker though. I would suggest testing it out on ros melodic through a docker container to see if that improves things.

For example if you have docker installed:

  1. docker pull ros:melodic-ros-core
  2. run container: docker run -it --net host ros:melodic-ros-core
  3. inside container install rosbridge and run it:
    apt update
    apt install ros-melodic-rosbridge-suite
    roslaunch rosbridge_server rosbridge_websocket.launch
  4. listen to topics on your host machine and see if things improve
ajay1606 commented 4 years ago

@hadiTab , thanks for your efforts, I will check with ubuntu 18.04 and get back to you.

ajay1606 commented 4 years ago

@hadiTab actually I have setup ubuntu 18.04 with ROS melodic in a separate machine. But I am getting an error while starting the simulation environment.

  1. Test with lgsvlsimulator-linux64-2020.03-rc1 (release version) Screenshot from 2020-04-09 11-18-02

  2. lgsvlsimulator-linux64-2020.01 (release version) Screenshot from 2020-04-09 11-17-21

Sorry for bothering you again, but could you please help me to fix this issue.

kind regards,

hadiTab commented 4 years ago

It seems like you had an old simulator installation on that machine.

Close the simulator and delete the folder called "LG Silicon Valley Lab" located in ~/.config/unity3d.

Launching the simulator again now should redownload all the maps and vehicles and the error should be resolved.

ajay1606 commented 4 years ago

Excellent, billion thanks to you.

  1. getting data imu_raw @ 90 hz
  2. getting points_raw @10 hz

Really appreciate your help.