Merging Laser Readings into one Topic
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi all,
I've a robot with two Hokuyo lasers, but most of ROS algorithms only allow one laser reading as an input. For that reason, I'm trying to import the readings of the two lasers to MatLab and merge them, publishing later the coordinates of all the points (corresponding to the two readings) in one topic.
I've accomplished the merging of the readings, the problem is in the publication of the topic. I've created another link/tf in my ROS setup, in which I pretend to attach the data of this new topic. The link is properly connected in the tf tree and all the transformations are available, the message has the new link as the Header and everything is working fine when I do a "rostopic echo" of this new topic. However, when I'm trying to visualize this new laser readings in Rviz, none of the data is shown and I get the error "Unknown reason for transform failure".
I've reading about this error and seems to be a problem related with the frame_id of the node that is publishing the topic, because if I set the Fixed Frame of Rviz to the specific link that I've created for the merging data ("hokuyo_laser_link3", in this case) I can see JUST one scan of the new data.
The question is, does anyone know how to specify the frame_id of the node that is created when you do the "rosinit"? Or do you know another possible solution for my problem?
If more information were needed, like screenshots or the tf_tree, just ask.
Thanks
댓글 수: 0
답변 (1개)
Tohru Kikawada
2019년 5월 2일
편집: Tohru Kikawada
2019년 5월 2일
The frame_id shoud be published as described in the following documentation. https://mathworks.com/help/robotics/examples/access-the-tf-transformation-tree-in-ros.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with ROS and ROS2 Connectivity Interface에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!