Skip to content

Commit

Permalink
Fix issue with ros2bag record python frontend (#100)
Browse files Browse the repository at this point in the history
* Update record.py

Add _subparser member variable ( which is being called at line number 94). Otherwise it causes segmentation fault on calling ros2 bag record.

Signed-off-by: Sagnik <basusagnik1995@gmail.com>

* Update record.py

Add type info to parser

Signed-off-by: Sagnik <basusagnik1995@gmail.com>
  • Loading branch information
sagniknitr authored and Karsten1987 committed May 3, 2019
1 parent a7d4d3d commit 241fcdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ros2bag/ros2bag/verb/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ def add_arguments(self, parser, cli_name): # noqa: D102
help='disables topic auto discovery during recording: only topics present at '
'startup will be recorded')
parser.add_argument(
'-p', '--polling-interval', default=100,
'-p', '--polling-interval', type=int, default=100,
help='time in ms to wait between querying available topics for recording. It has no '
'effect if --no-discovery is enabled.'
)
self._subparser = parser


def create_bag_directory(self, uri):
try:
Expand Down

0 comments on commit 241fcdd

Please sign in to comment.