Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Method for filtering out gps topic in a bag file

$
0
0
Hi everyone, I have recorded a bag file which contains gps topic for using with robot_localization pkg. I want to modify my gps topic to mimic a scenario where gps signal is not available, e.g transition from indoor to outdoor and vice versa. Using [topic tools](http://wiki.ros.org/topic_tools) I was able to drop/filter out my gps messages. The result is in the following picture: ![drop gps messages](/upfiles/15209469275838605.png) topic_tools drops X out of Y messages *regularly* as it is supposed to (blue dots). My question is: is there any method that can drop messages for ***a specific time length***? For clarification, I would like something like this: ![image description](/upfiles/152094772132852.png) where the yellow lines are my gps messages and the gaps between them are dropped gps messages. I appreciate your help!

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>