Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rosbag_remote_record

A tiny tool to remotely trigger rosbag record through ROS or RSB topic trigger

Example:

running the app

python rosbag_remote_record.py -m ros -i /xtion/rgb/image_raw /something/else /another/topic -f testfile

triggering the recording start/stop with ROS

rostopic pub /meka/rosbagremote/record std_msgs/Bool True
rostopic pub /meka/rosbagremote/record std_msgs/Bool False

triggering the recording start/stop with RSB

rsb-toolscl0.15 send 'true' 'socket:/meka/rosbagremote/record'
rsb-toolscl0.15 send 'false' 'socket:/meka/rosbagremote/record'

Also look at:

python rosbag_remote_record.py --help

Setting up

Default Remote Listen Scope/Topic:

/meka/rosbagremote/record

for user specified Remote Listen Scope/Topic use -t option

Default mode (ROS and RSB)

  • Simply send a Bool value [ true = start recording | false = stop recording] to the above topic/scope

Message limit

option -l NUM permits to limit recording NUM message in the rosbag, and automatically stopping (no need to send a stop command, although stop can still stop before NUM messages were received)

Advanced mode (only in ROS now)

  • Filename can be specified for each start/stop operation
  • Use a String value containing [ filename:start | filename:stop ] to the extended trigger topic/scope, to be start/stop recording file called filename
  • Either give the fullpath in the string (-f will then be ignored)
  • Or give the filename only or partial path and provide a base directory with -d option which is prepended to the filename
  • the extended trigger topic/scope is the standard topic with /named at the end
    rostopic pub /trigger/named std_msgs/String 'myfile:start'
    rostopic pub /trigger/named std_msgs/String 'myfile:stop'

About

A tiny tool to remotely trigger rosbag record

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.