question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Realsense Camera Issues

See original GitHub issue

Hi,

When the most current locobot_install_all.sh script (using ‘full’ and python 3 for the arguments) installs the librealsense2-dkms version, I get an error message essentially saying that librealsense2-dkms 1.3.4-0ubuntu1:librealsense2-dkms kernel module failed to build’. Currently, my kernel version is 4.15.0-96-generic (latest to date), and I’m working with Ubuntu 16.04.6. As a result, the realsense node is not working.

Is it possible that since you are installing librealsense 2.18.1 (which is outdated by more than a year), it is not able to build correctly on my kernel? I noticed that if I install the latest librealsense2 packages and the realsense_ros node as outlined at https://github.com/IntelRealSense/realsense-ros, that everything works as it should. I also noticed that version 2.18.1 is recommended to work with an outdated realsense firmware version (5.10.03). As Intel makes these cameras, they are putting the latest firmware on them by default (currently 5.12.03).

Would it be possible to update the installation script such that it always builds the latest stable version of librealsense and the realsense ros node?

Additionally, I noticed that when the ‘rosrun orb_slam2_ros gen_cfg.py’ command is run in the installation script, it always fails saying that there is no ‘rs_camera.launch’ in realsense2_camera, and that that package doesn’t even exist. After doing some debugging, I realized this issue was due to improper overlaying of catkin workspaces in the script.

In any event, I created a modified installation script that fixes all of the above issues which is attached below (note that in the script, I’m installing the pyrobot repo from here, instead of the facebook one. The version over at Interbotix contains a modified URDF that accounts for the discrepancies between the original Locobot version created at CMU and the one being mass produced by Trossen Robotics.

locobot_install_all_modified.sh.zip

Also note that when running the second half of the camera calibration procedure, I get an error originating from line 66 in the solve_for_calibration_params.py script saying ‘UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x80 in position 0: invalid start byte.’ I was able to fix this issue by editing that line to read…

tt = pickle.load(open(os.path.join(dir_name, "states.pkl"), 'rb'))

I believe the above issue has to do with the pickle.load function operating slightly different between Python 3 and lower versions. But I know that the above code fixes the issue when working in Python 3.

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
swinterbotixcommented, Apr 21, 2020

Cool. We’ll still need to have it in the main.launch file just the one time though since I specify a different arm sleep pose in the locobot_controller.cpp file. Anyway, I’ll go ahead and create a PR for this soon.

0reactions
kalyanvasudevcommented, Jun 10, 2020

Hi @swinterbotix , since the PR has been fully merged onto master now, I am closing this issue. Feel free to re-open it again if you have further questions. Thanks for working on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows® 10 Issues with Intel® RealSense™ Cameras ...
PLEASE READ: This article is provided to help customers troubleshoot issues with their Intel RealSense SR300 or F200 cameras on Windows 10.
Read more >
Troubleshooting: Intel RealSense D455 Connectivity Issues
Please see below for steps to resolve connectivity issues with your Intel RealSense Depth Camera D455. Please note that items #1 and #2...
Read more >
Troubleshooting Connectivity and Streaming Issues on Intel®...
Intel® RealSense™ software tools don't recognize the camera at all. Can't see stream—Depth, IR, RGB—or streams aren't available in Intel RealSense Viewer or ......
Read more >
Issues · IntelRealSense/librealsense - GitHub
Intel® RealSense™ SDK. Contribute to IntelRealSense/librealsense development by creating an account on GitHub.
Read more >
Intel issues end-of-life notice for RealSense LiDAR
Intel will be discontinuing production of the following RealSense products: Intel RealSense LiDAR Camera L515; Intel RealSense ID Camera F455 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found