How to transfer feedback from a real sensor to ROS as joint_states? Help!

asked 2019-05-23 09:34:58 -0500

Nazar gravatar image

updated 2019-05-23 09:35:49 -0500

Hi, My question is simple: How to provide the obtained (ultrasonic) sensor data from the prismatic joints to ROS as feedback? I am using arduino UNO to take sensor readings and I have converted the obtained data to distance. I have also interfaced Arduino with ros using rosserial. Now I need to transfer this data as joint states. How to do that?

I have created the hardware of a RPP robot and simulated it using Rviz. I am stuck at this stage for over a month. Kindly help.

Iam using ROS kinetic.

edit retag flag offensive close merge delete

Comments

1

I am stuck at this stage for over a month.

Can you please tell us what you've already tried? Just so we can avoid suggesting things that didn't work for you.

gvdhoorn gravatar imagegvdhoorn ( 2019-05-23 09:36:20 -0500 )edit

Now I need to transfer this data as joint states.

And a first attempt: publishing the distance data as a sensor_msgs/JointState msg didn't work?

gvdhoorn gravatar imagegvdhoorn ( 2019-05-23 09:37:50 -0500 )edit