gaowenliang / imu_utils

A ROS package tool to analyze the IMU performance.
https://gaowenliang.github.io/imu_utils
MIT License
1.5k stars 482 forks source link

Wait for imu data #15

Closed shenglunch closed 5 years ago

shenglunch commented 5 years ago

Hello Gao, May I ask you a question?After run launch file,“wait for imu data” will appear. I check topic information(rostopic list & rostopic inof /xx), there is not any problem. Thank you very much!

johnjin404 commented 5 years ago

you need to wait for the bad file playing end,,look at the imu_an.cpp.

shenglunch commented 5 years ago

you need to wait for the bad file playing end,,look at the imu_an.cpp. thanks!

maxwu8416 commented 5 years ago

@csl1994 hay~ i also have same problem as you did. do you solved the problem ? @johnjin404 i already your suggest try to wait for bag file playing until the end but nothing change. is it need to do it at the same time ? (playing bag file and do roslaunch) or play the bag file before do roslaunch ? both of them i already try it but still the same. if you have any idea ill be really grateful.

shenglunch commented 5 years ago

@csl1994 hay~ i also have same problem as you did. do you solved the problem ? @johnjin404 i already your suggest try to wait for bag file playing until the end but nothing change. is it need to do it at the same time ? (playing bag file and do roslaunch) or play the bag file before do roslaunch ? both of them i already try it but still the same. if you have any idea ill be really grateful.

shenglunch commented 5 years ago

@maxwu8416 I think the parameter("max_time_min") means that the bag file should be played for xxx minutes, so I changed it to 1 minute and it will be finished soon, but it will remind me that "the time is too short".finally i run imu for 40 m, and set the parameter as follow <param name="max_time_min" type="int" value= "30"/>

maxwu8416 commented 5 years ago

Okay~ seems worth to try ! Thx for ur reply ! I’ll try it later and update the info

foemre commented 2 years ago

It seems that the program doesn't give useful feedback about whether it receives imu info. But it does. So if you cannot be sure, just change max_time_min in your launch file to 1 min or so, and see the results. But for accurate results you have to at least run it for about 2 hours.

SyahirMuzni commented 2 years ago

Hi, I am facing the same problem here. How am I going to configure the duration of the data recording? I recorded a rosbag for 1 minute. I did make some changes in the launch file & imu_an.cpp. Screenshot from 2022-10-12 16-19-50 Screenshot from 2022-10-12 17-42-20

But the recording is still too short. Where and how should I change the parameters? FYI, I am still new in cpp.

Thank you so much for your help!

tulingcheng86 commented 10 months ago

@maxwu8416我认为参数(“max_time_min”)的意思是bag文件要播放xxx分钟,所以我把它改成1分钟,很快就播放完了,但它会提醒我“时间太短”。最后我运行imu 40 m,参数设置如下 <param name="max_time_min" type="int" value= "30"/>

THINKS! IT HELPFUL!

tulingcheng86 commented 10 months ago

@maxwu8416我认为参数(“max_time_min”)的意思是bag文件要播放xxx分钟,所以我把它改成1分钟,很快就播放完了,但它会提醒我“时间太短”。最后我运行imu 40 m,参数设置如下 <param name="max_time_min" type="int" value= "30"/>

有用!

wells-sde commented 4 days ago

@maxwu8416我认为参数(“max_time_min”)的意思是bag文件要播放xxx分钟,所以我把它改成1分钟,很快就播放完了,但它会提醒我“时间太短”。最后我运行imu 40 m,参数设置如下 <param name="max_time_min" type="int" value= "30"/>

THINKS! IT HELPFUL!

你帧的需要等30分钟吗,还是只要imu bag 播放完了就可以计算参数了?