Coder Social home page Coder Social logo

Comments (5)

Livox-SDK avatar Livox-SDK commented on September 6, 2024

Hi,satoshimiya,
You can first synchcronize the lidar time with gps, the time of lidar is the absolute time after turning on.

from livox_ros_driver.

RakVish1342 avatar RakVish1342 commented on September 6, 2024

@satoshimiya, I had the same issue with the Livox and was wondering the same thing; Unlike while rosbag files which can publish the simulation clock using the --clock flag, the Livox does not seem to publish into /clock. So how can this issue of livox old messages be resolved?

@Livox-SDK, if I do not have any other sensors along with the Livox (not even a GPS sensor), how can I synchronize Livox messages with the current ROS time?

I used a hacky work around to resolve the issue. I created a node that subscribes to /livox/lidar and /livox/imu. Within the callback functions of each of the topics, I modify the incoming message's msg.header.stamp with the ros::Time::now() or rospy.Time.now() and publish it back into a different topic. I'm not sure if this follows ROS best practices but it seems to work for the isolated sensor of just the Livox.

from livox_ros_driver.

gongyue666 avatar gongyue666 commented on September 6, 2024

@RakVish1342 is it working for your method? I face the same problem. Does Livox can not show pointclouds in RViz with a static_tf_publisher or it can not work in our codes too?

from livox_ros_driver.

RakVish1342 avatar RakVish1342 commented on September 6, 2024

@gongyue666, I do not use the livox lidar any more. However, the technique that I had mentioned in the workaround should resolve your rviz visualization issue. In my workaround I write a subsrciber that subscribes to the /livox/lidar and /livox/imu topics. The subscriber add timestamps manually to the Header of the messages using ros::Time::now(). Then I re-publish those messages (now containing the manually added time stamps) to a new topic like /livox/lidar_new and /livox/imu_new. I record and visualize only the _new topics. While playing back the rosbag file remember to use the --clock flag to use the rosbag's sim_time rather than the onboard/computer time.

from livox_ros_driver.

gongyue666 avatar gongyue666 commented on September 6, 2024

@RakVish1342 Thx very much~

from livox_ros_driver.

Related Issues (20)

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.