Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant see lidar on RVIZ #125

Open
ArielMechatronicLab opened this issue Jan 2, 2023 · 1 comment
Open

Cant see lidar on RVIZ #125

ArielMechatronicLab opened this issue Jan 2, 2023 · 1 comment

Comments

@ArielMechatronicLab
Copy link

hello everyone, i want to connect my ouster lidar to URDF file to use with RVIZ i get this message: Message Filter dropping message: frame 'lidar_front_joint' at time 5265.887 for reason 'discarding message because the queue is full'

but there is no problem with my TF or something i need the lidar rays to move with the car, in the URDF file i created lidar and lidar joint. in the ouster driver params Yaml file this is my settings

ouster_driver: ros__parameters: lidar_ip: 10.5.5.76
computer_ip: 10.5.5.1
lidar_mode: "2048x10" #"1024x10"
imu_port: 7503
lidar_port: 7502
sensor_frame: lidar_front #laser_sensor_frame
laser_frame: lidar_front_joint #laser_data_frame
imu_frame: imu_data_frame
please help me!

@Valts-M
Copy link

Valts-M commented Jan 26, 2023

Just guessing from the timestamp you have set the "timestamp_mode" paramater to "TIME_FROM_INTERNAL_OSC". Since the timestamps in the point cloud messages are not correct RVIZ won't display them. For now you can set the parameter to "TIME_FROM_ROS_RECEPTION", but in the future you should time synchronize it by using PTP, especially if is for an automotive project. To do that you will want to follow this guide: https://static.ouster.dev/sensor-docs/image_route1/image_route2/appendix/ptp-quickstart.html.
The guide may be a bit outdated. If you are working with Ubuntu 22.04 then your phc2sys service will need to look like this:

[Service]
ExecStart=
ExecStart=/usr/sbin/phc2sys -w -s CLOCK_REALTIME -c eno2 -O 0

Hope this helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants