ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is autocompletion supported for rosbag record?

asked 2019-03-02 06:27:49 -0500

nbro gravatar image

updated 2019-03-02 06:28:16 -0500

I was trying to record a bag file using rosbag record /my_topic. However, apparently, there is not autocompletion for the topics, if I click on the tab key, after having written rosbag record. Is this the normal behaviour? Actually, I can see the ROS topics (including the ones I am interested in recording) by issuing the command rostopic list. Autocompletion seems to be working for other commands.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-03 08:21:31 -0500

holadepo gravatar image

I tried it on my machine. On ROS Melodic, the current autocompletion behaviour of rosbag record and other subcommands of rosbag is to insert a file name, so when you press the tab key, the computer inserts the name of the only file in the current directory or shows you a list of the files in the directory if you have more than one file. Nothing will be inserted if you don't have any file in the current directory.

edit flag offensive delete link more


Ok, but I would like the autocompletion to work for existing ROS topics, not folder names.

nbro gravatar image nbro  ( 2019-03-03 08:23:47 -0500 )edit

I am not sure of how tab completion is configured, but I think this would have to be done by the developers of ROS. You may be able to configure it manually too, so I recommend you check online for how to do that.

holadepo gravatar image holadepo  ( 2019-03-03 08:39:45 -0500 )edit

I just learnt that tab completion for ROS utilities is enabled by the rosbash package. You can check this page for more information.

holadepo gravatar image holadepo  ( 2019-03-03 09:10:35 -0500 )edit

Question Tools



Asked: 2019-03-02 06:27:49 -0500

Seen: 265 times

Last updated: Mar 03 '19