Comments (11)
always get the warning code
[ WARN] [1709477545.228805757]: /rtabmap/rtabmap: Did not receive data since 5 seconds! Make sure the input topics are published ("$ rostopic hz my_topic") and the timestamps in their header are set. If topics are coming from different computers, make sure the clocks of the computers are synchronized ("ntpdate"). Parameter "approx_sync" is false, which means that input topics should have all the exact timestamp for the callback to be called.
/rtabmap/rtabmap subscribed to (exact sync):
/rtabmap/odom \
/filter/rs_l515/color/image_raw \
/filter/rs_l515/aligned_depth_to_color/image_raw \
/filter/rs_l515/color/camera_info \
/rtabmap/odom_info
from rtabmap.
i see here:
https://robotics.stackexchange.com/questions/23394/rtabmap-rtabmap-did-not-receive-data-since-5-seconds
mobiiin said is encoding problem ? is it right ?
[update] it is still not work ! wt....
from rtabmap.
i also run rostopic hz
and i found the original and the filters' are very similar. so maybe is not the problem.
from rtabmap.
should i use tf replace tf_static ?
[update] it is still not work ! wt....
from rtabmap.
What is the rostopic hz output for:
rostopic hz \
/filter/rs_l515/color/image_raw \
/filter/rs_l515/aligned_depth_to_color/image_raw \
/filter/rs_l515/color/camera_info \
from rtabmap.
hello, @matlabbe
[1]
run with
depth_topic:=/rs_l515/aligned_depth_to_color/image_raw
rgb_topic:=/rs_l515/color/image_raw
camera_info_topic:=/rs_l515/color/camera_info
which publish from realsense nodelet
this can work well !
[2]
run with
depth_topic:=/filter/rs_l515/aligned_depth_to_color/image_raw
rgb_topic:=/filter/rs_l515/color/image_raw
camera_info_topic:=/filter/rs_l515/color/camera_info
which publish from (realsense nodelet after sharping then publish)
this can't work !
[3]
this is hz between
/filter/rs_l515/color/image_raw
/rs_l515/color/image_raw /filter/rs_l515/aligned_depth_to_color/image_raw
/rs_l515/aligned_depth_to_color/image_raw
i sure that the encoding
color are both rgb8
depth are both 16UC1
from rtabmap.
maybe problem is at the tf not publish from rs_l515_link? [not this]
but i create a tf_frame from base_link, it is still can't work
from rtabmap.
You should have warnings in rtabmap terminal if topics can be synchronized but don't have the right format or if there is a TF issue. If you have warnings about topics not received for 5 seconds, you may check if /filter/rs_l515/color/camera_info
also published.
I see that you are also using approx_sync:=false
, if the topics don't have the same stamps, use approx_sync:=true
instead.
from rtabmap.
yes, mr. @matlabbe , i had use approx_sync:=true
instead.
but i still can't slove the problem.
so, can't i use /rs_d435i/color/camera_info
as camera_info_topic ?
like this :
<!-- RGB-D related topics -->
<arg name="rgb_topic" default="filter/rs_d435i/color/image_raw" />
<arg name="depth_topic" default="/rs_d435i/aligned_depth_to_color/image_raw" />
<arg name="camera_info_topic" default="/rs_d435i/color/camera_info" />
<arg name="depth_camera_info_topic" default="$(arg camera_info_topic)" />
as below is sharpened code, are there any problem in the code ?
#!/usr/bin/env python3
import rospy
import cv2
import numpy as np
from cv_bridge import CvBridge, CvBridgeError
from sensor_msgs.msg import Image
def color_callback(data):
cv_image = bridge.imgmsg_to_cv2(data, "bgr8")
sharpened_img = sharpened(cv_image)
sharpened_img = cv2.cvtColor(sharpened_img, cv2.COLOR_BGR2RGB)
sharpened_img = bridge.cv2_to_imgmsg(sharpened_img, "rgb8")
# Publishing
pub_filter_color.publish(sharpened_img)
if __name__ == '__main__':
rospy.init_node('image_filter', anonymous=True)
bridge = CvBridge()
# Subscribers
rospy.Subscriber("/rs_d435i/color/image_raw", Image, color_callback)
# Publishers
pub_filter_color = rospy.Publisher("/filter/rs_d435i/color/image_raw", Image, queue_size=10)
rospy.spin()
thanks!!
from rtabmap.
You can use /rs_d435i/color/camera_info
if /filter/rs_d435i/color/image_raw
has still the same resolution (and that you didn't change the scale of the image, i.e., kept same calibration).
from rtabmap.
Another thing I just noticed, you should copy the old header in your new published topic header.
sharpened_img.header = data.header
from rtabmap.
Related Issues (20)
- how to change 2d map when i navigate from 1f to 2f HOT 6
- Empty Gridmap and Octomap with recent integration of Gridmap HOT 2
- Received IMU doesn't have orientation set! It is ignored HOT 2
- many nodes are not optimized (negative weight) after mapping HOT 1
- Python3 Option with RTABMAP Issue HOT 4
- Support for Orbbec Femto cameras HOT 1
- what are these lines mean in graph view ? HOT 2
- how to merge multiple times SLAM db file with rgbd camera, 3d lidar and odometry ? HOT 4
- Localization Mode + MM: Add option to pre-optimize the full global graph once so that map origin doesn't change on retrieval
- how to fusion icp odometry and visual odometry into a fusion odometry? and some question need to reassure
- Change exported multiband filenames
- `cmake_modules/FindSqlite3.cmake` breaks transitive dependencies. HOT 2
- (iSAM2) GTSAM exception caught: Requested the BayesTree clique for a key that is not in the BayesTree HOT 1
- bad calib camera matrix HOT 3
- Continously updating the reconstructed cloud with the sensor field of view HOT 4
- Wiki: Installation iOS - add App Store link HOT 1
- Offload the processing of the RTAB-Map iOS app to a PC HOT 6
- RGBD and 2d lidar fusion HOT 1
- Memory::createSignature() Decimated data may not be valid if features are not re-extracted and Feature2D's grid cols/rows are set HOT 1
- Unable to launch GUI on Raspberry Pi 5 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtabmap.