-
Notifications
You must be signed in to change notification settings - Fork 406
Feat threading #244
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
Feat threading #244
Conversation
* publishing on its own thread * PCL dependency removed * Elaboration time reduced from 70msec to about 10 msec Added sl_tools to easily measure time
adujardin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me (although the complete code reformatting didn't make that particularly easy ;) )
Check out the comments, there are a few things to correct.
Also, you should check a potential issue I found when messing around with unsub/sub to DepthCloud or PointCloud2 in Rviz the cloud would freeze or disappear for some time (like 5-10 sec with everything but the cloud)
CMakeLists.txt
Outdated
| set(TOOLS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/tools/src/sl_tools.cpp) | ||
| set(TOOLS_SRC | ||
| ${CMAKE_CURRENT_SOURCE_DIR}/src/tools/src/sl_tools.cpp | ||
| ${CMAKE_CURRENT_SOURCE_DIR}/src/tools/src/stopwatch.cpp ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to push this file. However, arguably I'd put it in sl_tools.cpp, also do we actually need a custom stopwatch? There is already a macro in the ZED SDK (INIT_TIMER, STOP_TIMER(str))
| <arg name="serial_number" default="0" /> | ||
| <arg name="verbose" default="true" /> | ||
| <arg name="resolution" default="2" /> <!--0=RESOLUTION_HD2K, 1=RESOLUTION_HD1080, 2=RESOLUTION_HD720, 3=RESOLUTION_VGA --> | ||
| <arg name="frame_rate" default="30" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 30 fps is a better default value, 60 is just too much data to process
No description provided.