Skip to content

Instantly share code, notes, and snippets.

@khssnv
Last active October 20, 2020 11:15
Show Gist options
  • Save khssnv/5ac1307c102fc72f20b1d318708a52c8 to your computer and use it in GitHub Desktop.
Save khssnv/5ac1307c102fc72f20b1d318708a52c8 to your computer and use it in GitHub Desktop.

1. Copy a segment from rosbag file

rosbag filter in.bag out.bag "t.to_sec() >= 1582908021.4 and t.to_sec() <= 1582908029.0"

Source: How to split a recorded rosbag file?

2. Graceful stop for rosbag recording

rosbag record -O out.bag cmd_vel __name:=rosbag
rosnode kill /rosbag

3. Build with dist-packages from python3

catkin build --cmake-args -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment