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

How to connect sensors with ros?

asked 2021-08-06 23:19:30 -0500

Kapil Chauhan gravatar image

Hi, EveryOne Being a beginner in ROS, I don't know how can i connect sensors like Ultrasonic sensor, Infra. sensor with it?

I've knowledge of ardunio, and rasberry pi but don't how does it work with ros. What I imagine is that ros creates a server and then arduino publishes data and ros subscribes to it and vice-versa. Can anyone give a feeling about it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-08-07 16:36:55 -0500

Firstly you can get your sensor data with Arduino or your SCB(raspi, Jetson Nano etc.) IO pins. There are many example for many sensors in the GitHub. You can check it for example ultrasound sensor
https://github.com/engcang/HC-SR04-Ul...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-08-06 11:46:30 -0500

Seen: 233 times

Last updated: Aug 07 '21