lgsvl / simulator

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

problem with rosbridge on Windows10 #1265

Closed Michealhao1991 closed 3 years ago

Michealhao1991 commented 3 years ago

Hello ,I set the environment as #754

But a few seconds after the emulator starts running,the hz of the publish data Down to 0 hz,and http://localhost:8080 is No response. It seems rosbridge has not worked.

this is the terminal: $ rostopic hz /imu_raw average rate: 93.216 min: 0.000s max: 0.112s std dev: 0.01870s window: 729 average rate: 88.612 min: 0.000s max: 0.183s std dev: 0.02030s window: 786 average rate: 81.920 min: 0.000s max: 0.183s std dev: 0.02248s window: 810 average rate: 74.889 min: 0.000s max: 0.283s std dev: 0.02749s window: 818 average rate: 71.915 min: 0.000s max: 0.302s std dev: 0.02997s window: 823 average rate: 68.119 min: 0.000s max: 0.652s std dev: 0.03730s window: 824 no new messages no new messages no new messages no new messages no new messages

$ rostopic hz /points_raw subscribed to [/points_raw] average rate: 1.245 min: 0.803s max: 0.803s std dev: 0.00000s window: 2 average rate: 1.354 min: 0.674s max: 0.803s std dev: 0.06481s window: 3 average rate: 1.342 min: 0.674s max: 0.803s std dev: 0.05371s window: 4 average rate: 1.335 min: 0.674s max: 0.803s std dev: 0.04379s window: 6 average rate: 1.352 min: 0.674s max: 0.803s std dev: 0.04501s window: 7 average rate: 1.356 min: 0.674s max: 0.803s std dev: 0.04206s window: 8 huanghao@COMP-01-10703:/mnt/c/Users/huanghao1$

QQ图片20210225172102

Above is a screenshot from my simulator,the frequency of imu is about 100hz but i when use "rostopic hz /imu_raw", it show "no new messages"

I reduce the lidar frequency to 5 hz it's seen to use more time to turn to 0hz. this problem doesn't happen in my ubuntu18.04 OS. Could you give me some advice?thank you!

computer configuration: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 GHz 16GB RAM GTX1660ti 6G

Michealhao1991 commented 3 years ago

I found that the problem with my poorly computer, problem was resolved when I used a PC with higher memory(64G) and SSD