Git Product home page Git Product logo

nuscenes2bag's People

Contributors

chernoa avatar clynamen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nuscenes2bag's Issues

Compile on Ubuntu 16.04, 18.04

Thanks for making this useful tool. Unfortunately I am stuck using an older version of ROS.

I forked the code and modified it to compile on Ubuntu 16.04 or 18.04 using only the standard version of libraries that came with that distribution. I also added an alternative implementation of a thread pool, and the option to publish the 5th data field "ring" from the laser sensor.

Ubuntu 16.04 (ROS Kinetic Kame) Branch: ubuntu_1604
Ubuntu 18.04 (ROS Melodic Morenia) Branch: ubuntu_1604
Ubuntu 19+ Branch: master

I tested it on those two distributions only. I don't have any other linux to try.

The backported code uses precompiler logic that switches based on the detected library versions.
For example:

#if CMAKE_CXX_STANDARD >= 17
  std::optional<SceneInfo> getSceneInfo()
#else
  boost::shared_ptr<SceneInfo> getSceneInfo()
#endif

which means that the code is more messy, but this saves trying to maintain two very different branches.

The code in NuScenes2Bag.cpp uses a thread pool from Boost 1.66 so I found another implementation.

Functionality used Requires
std::unique_ptr C++14
std::filesystem C++17, CMake 3.8+
std::optional C++17, CMake 3.8+
boost::asio::thread_pool Boost 1.66.00
Distribution Packaged libraries
Ubuntu 16.04 CMake 3.5.1, Boost 1.58.00
Ubuntu 18.04 CMake 3.10.2, Boost 1.65.00
Ubuntu 19.04 CMake 3.13.4, Boost 1.67.00

Adding Camera Intrinsic Parameters to the ROS Bag on \tf Topic

@clynamen @ChernoA I played the ROS bag file in loop with robag play -l 61.bag and then rotopic echo /tf. Please find below for camera_front/raw.

Screenshot from 2020-07-31 16-13-55

I wanted to read the camera intrinsic parameters as well in a program, but I unable to find this data in the in the /tf topic. Hence, I was wondering if the camera intrinsic parameters defined in the calibrated_sensor.json in the nuScenes dataset could also be published in the /tf topic?

New features?

What new features are people interested in?
e.g.

  • Lidar rings
  • Radar points
  • Bounding boxes

Comment here with what features you want to see, and if there's enough interest then maybe we can add them.

Sorry for using this 'issues' board for discussion ;-)

Camera info in the ros bag file

Hey, nice work for writing this converting tool. It works great!!!

Would it be possible to add the Camera info into the rosbag file? When I subscribe to the "/cam_front/raw" topic. I only find the Images. Sure I can get the camera info somewhere else. However, if it's not too difficult, it would be great if you can add that!

Thanks!

Minor suggestions to code

Hello,
Thanks for making this great tool. It is very useful!

I want to suggest some minor changes to the code, like to specify the C++17 version and the correct minimum versions of CMake and Boost.
Here is a Pull Request #2
Your comments are welcome.

Why is the resulting bag so large

Hi,

Thank you for all your work on this package. I used nuscenes2bag to convert nuscenes-mini and it went from being 5 GB to around 62 GB. Is this normal and if so, would you mind explaining why the output is so much larger?

Thanks!
Eric

Annotations Topic

Hi,
Is it possible to convert the nuscenes annotations to /marker/annotations topic as well?

Thanks

how to build on ubuntu18.04?

Hi, I try to built on ubuntu18.04 with melodic

but I can got some errors:

  Could not find a package configuration file provided by "rosbag" with any

I try to install sudo apt install ros-melodic-rosbag, it says this package can not found on ros server

convert radarObject to PointCloud2

Screenshot from 2022-06-27 16-25-08
In the above image radar data(.pcd) is in RadarObjects datatype, lidar data(.pcd) is in sensor_msgs/PointCloud2 , how to convert RadarObject to PointCloud2 datatype format?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.