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

Get_device_time_ms()took too long (more then 2 mScecs) #1262

Closed
Jenny0420 opened this issue Jun 28, 2020 · 15 comments
Closed

Get_device_time_ms()took too long (more then 2 mScecs) #1262

Jenny0420 opened this issue Jun 28, 2020 · 15 comments
Labels

Comments

@Jenny0420
Copy link

camera : intel realsense D435
ros kinetic + ubuntu 16.04 LTS
my librealsense already done ,when i run "realsense-viewer",i can get the RGB Picture and Depth
And my realsense- ros already done yet,in rviz i can get the image like this
22

but when i run "roslaunch realsense2_camera rs_rgbd.launch"
i have got an error,like this:

3

when i run the "raulmur/ORB_SLAM2",i can't get the image,like this

11

Thanks for any help !!

@MartyG-RealSense
Copy link
Collaborator

Please make sure you have the rgbd package for ROS Kinetic installed by using the instruction below:

sudo apt install ros-kinetic-rgbd-launch

@Jenny0420
Copy link
Author

@MartyG-RealSense
thanks,and i'm sure my 'ros-kinetic-rgbdd-launch' was the last vision
when i run 'realsense-viewer',i got a warn
warn
Maybe my two rules caused this problem.

@MartyG-RealSense
Copy link
Collaborator

If you have multiple udev rules then guidance is provided in the link below about which one is safe to remove.

IntelRealSense/librealsense#6153 (comment)

@Jenny0420
Copy link
Author

i followed the guidence and remove the rule"60-librealsense2-udev-rules.rules"
and then in "realsense-viewer" is ok ,no error,no warn.
but when i run "roslaunch realsense2_camera rs_rgbd.launch"
i got a new error
error1

@MartyG-RealSense
Copy link
Collaborator

@Jenny0420 The guidance was that the rule under 60-librealsense2-udev-rules.rules was the one that should not have been removed because it breaks Debian. The one that should have been removed is the one under the etc folder.

@Jenny0420
Copy link
Author

oh...sorry .
it means that i need to clean all and rebuild from scratch.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 29, 2020

Before doing that, you could try rebuilding the udev rules with this:

sudo apt-get install librealsense2-dkms

@Jenny0420
Copy link
Author

the 'librealsense2-dkms'was the last vision

@MartyG-RealSense
Copy link
Collaborator

Your knowledge of udev rules installation is probably better than mine! If you are going to have to do a fresh install anyway if it does not work, you may as well try it.

@Jenny0420
Copy link
Author

i have tired and it doesn't work .i try to remove all (realsense SDK , ros ,realsense-ros)
and do a freash install .
thanks

@MartyG-RealSense
Copy link
Collaborator

Good luck!

@Jenny0420
Copy link
Author

@MartyG-RealSense
i have already rebuild the realsense SDK2 and ros kinetic
And i want to see some image by rviz and when i run
'roslaunch realsense2_camera rs_camera.launch'
i got an error,like this:
warn1

this is a new warn i've never met before.

and in rviz when i choose the topic ,i found that the "depth_registered" is gone,i can't see the pointcloud2 image
gone

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 1, 2020

Hi @Jenny0420 On Ubuntu, support for frame metadata has to be patched in if you are building from source.

https://dev.intelrealsense.com/docs/frame-metadata#section-os-support

An exception to this is if you build from source using the backend method, which requires an internet connection. Metadata support is then included in the build. The backend installation method is described in the link below.

IntelRealSense/librealsense#6710 (comment)

Looking at your log extract though, it does not seem that an absence of metadata has "killed" the launch process.

The link below describes how to get an RGBD pointcloud with pointcloud2 and display it in RViz by setting Fixed Frame to camera_link.

https://github.com/IntelRealSense/realsense-ros#rgbd-point-cloud

@MartyG-RealSense
Copy link
Collaborator

Hi @Jenny0420 Do you still require assistance with this case please, or can it be closed? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants