ros2 / ros_astra_camera Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ernestmc/ros_astra_camera
ROS wrapper for Astra camera
This project forked from ernestmc/ros_astra_camera
ROS wrapper for Astra camera
1,goto catkin workshop dir and compiler astra_camera $ catkin_make --pkg astra_camera note: astra driver provide two work method, normal and filter. with filter driver, get better quality depth data but need high-performance platform , like pc. if you work in the ARM, suggest to use normal method. you can use -DFILTER=ON / OFF to change the method. $ catkin_make --pkg astra_camera -DFILTER=OFF 2,create astra udev rule $ roscd astra_camera && ./scripts/create_udev_rules 3,run astra_camera use astra $ roslaunch astra_launch astra.launch use astra pro (uvc rgb ) $ roslaunch astra_launch astrapro.launch 4,you can use rviz or image_view to verify driver
the environment we are using:
OS: ubuntu20.04
ROS: ros2 foxy
camera: astra pro
the package can be compiled, while the image cannot be shown normally, any idea are welcomed, thanks!
For whatever reason, when I try to set the astra camera use the depth camera at any resolution greater than 320x240, it doesn't produce much data. That is, the lower layers of the driver, and/or the camera itself, don't callback into the ROS layer more than once every few seconds. Something is clearly wrong there; we should debug this and/or compare it to the ROS1 driver to get a better sense of what should be happening there.
This is the output of the node when connecting to an Astra Mini (Astra without an enclosure, for OEMs):
Device "2bc5/0404@1/31" found.
Warning: USB events thread - failed to set priority. This might cause loss of data...
Warning: USB events thread - failed to set priority. This might cause loss of data...
Starting color stream.
Cannot stream RGB and IR at the same time. Streaming RGB only.
Starting depth stream.
I couldn't see any depth images in Rviz because the frame id in the header was blank. Tracing this down, I found in the AstraDriver::newDepthFrameCallback, that the depth_registration_ flag is true and so it's populating the header and cam_info data with the color camera and not the depth camera.
I'm guessing this isn't the typical execution path when using a regular Astra, and so it's slightly broken.
I'm happy to help fix the issue, with some pointers on the desired behavior.
The whole of the astra driver really needs to be revamped for ROS2. It is fairly ugly right now, doesn't follow best practices, and has a lot of code commented out. We should probably start by cleaning up the upstream orbbec driver in ROS1, then proceed to fix up the ROS2 version of it.
For whatever reason, this doesn't seem to work. Maybe a line missing from CMakeLists?
I have to add it manually to get the node to launch.
This repo lacks a top level LICENSE file.
The sources have BSD-3 license headers, so the repo should have a matching LICENSE file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.