ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Multiple Sensors in Rviz

asked 2018-07-03 08:02:03 -0500

CptFrey gravatar image

Hello,

i am currently trying to implement 8 Ultrasonic Sensors into Rviz each of them is supposed to have a fixed position and just show their distance reading. I got 1 into Rviz by using the Sensor as the fixed frame. As far as i understand now i need to setup some form of tf frames for each sensor and link it somehow to a world map, but i have no clue how to do this or what i even have to do to do something like this. It would be great if someone could give me something to look at to understand the concepts since the tutorials i have seen so far are to rudimentary for me to really get behind.

Greetings CptFrey

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-03 09:10:06 -0500

Hi,

you should create xacro script for your robot or setup. Than you can easily get your TF frames. Other possibility is to use MarkerArray where you can set position of each sensor in reference to one coordinate system.

edit flag offensive delete link more

Comments

Thanks for the quick answer. Creating a xacro seems like a lot of work and i am not quite sure how to setup a 4 wheel RC car with 2 wheel steering. Or does something like that already exist somewhere?

Though i guess i will need it later on if i want to use it for a SLAM algorithm in Rviz?

CptFrey gravatar image CptFrey  ( 2018-07-04 01:53:38 -0500 )edit

One needs always a xacro file. I am not fimilier with accerman kinematics and xacro, but there have to be some examples...

Can you please my answer as correct if satisfactory. Or if not please post the correct answer so others can learn from it :)

Thanks!

destogl gravatar image destogl  ( 2018-07-25 02:55:00 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-03 08:02:03 -0500

Seen: 782 times

Last updated: Jul 03 '18