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

rosuseruser's profile - activity

2019-12-09 08:35:15 -0500 received badge  Famous Question (source)
2019-05-07 08:22:58 -0500 received badge  Famous Question (source)
2019-03-28 04:22:49 -0500 commented question My custom rqt plugin freezes after some time

Hi. I didn't use rqt at the end of the day. Basically I just switched over to qt_ros and qt_tutorials: http://wiki.ros.o

2019-03-27 12:43:02 -0500 commented question My custom rqt plugin freezes after some time

Hi. I didn't use rqt at the end of the day. Basically I just switched over to qt_ros and qt_tutorials: http://wiki.ros.o

2019-03-21 04:26:57 -0500 received badge  Notable Question (source)
2019-01-28 04:15:55 -0500 received badge  Famous Question (source)
2018-11-11 08:02:44 -0500 received badge  Enthusiast
2018-11-10 13:48:54 -0500 received badge  Popular Question (source)
2018-11-09 16:31:21 -0500 received badge  Notable Question (source)
2018-11-09 15:56:18 -0500 edited question Simple example of custom rqt plugin

Simple example of custom rqt plugin Hi. I would like to understand how to subscribe to a ROS topic from custom rqt plug

2018-11-09 15:49:33 -0500 edited question Simple example of custom rqt plugin

Simple example of custom rqt plugin Hi. I would like to understand how to subscribe to a ROS topic from custom rqt plug

2018-11-09 15:49:33 -0500 received badge  Editor (source)
2018-11-09 15:49:29 -0500 commented question Simple example of custom rqt plugin

I edited the question and gave more information.

2018-11-09 06:29:17 -0500 received badge  Popular Question (source)
2018-11-09 05:56:02 -0500 commented answer Simple example of custom rqt plugin

Thanks. However, I cannot find any declaration of subscriber/publisher there?

2018-11-09 04:39:12 -0500 asked a question Simple example of custom rqt plugin

Simple example of custom rqt plugin Hi. I would like to understand how to subscribe to a ROS topic from custom rqt plug

2018-11-07 11:43:37 -0500 received badge  Organizer (source)
2018-11-07 11:41:51 -0500 edited question My custom rqt plugin freezes after some time

My custom rqt plugin freezes after some time Hi. I implemented a custom rqt plugin in Python. It updates 9 QLabel string

2018-11-07 11:40:55 -0500 asked a question My custom rqt plugin freezes after some time

My custom rqt plugin freezes after some time Hi. I implemented a custom rqt plugin in Python. It updates 9 QLabel string

2018-10-24 06:24:07 -0500 received badge  Notable Question (source)
2018-10-21 04:57:12 -0500 commented answer How to correctly publish data from an analog sensor

Thank you! Works nice :)

2018-10-21 04:57:02 -0500 commented answer How to correctly publish data from an analog sensor

Thank you! :)

2018-10-21 04:56:55 -0500 received badge  Supporter (source)
2018-10-21 04:56:54 -0500 marked best answer How to correctly publish data from an analog sensor

Hi. I have an ultrasonic sensor (SRF 06 - current loop - this sensor has no other interface) which outputs analog signal (1V for 3-4cm - 5V for 510cm), Raspberry Pi 3 with Ubuntu Mate 16.04 installed and Arduino Nano

I want to publish this data to a ROS topic. Currently I'm using Arduino Nano to receive data from the sensor (because RPi has no analog inputs) and I connect Arduino to RPi with USB cable. Arduino sends ints from range 3 to 510. I wrote a small Python script to check if the transmission works - I receive correct data so looks like it's fine. Now, i created a ROS package with custom message to publish output of "/dev/ttyUSB0" to the topic. The problem is that data dont seem to be updated - it always oscillates nearby one value (the initial value of the output).

Can anyone tell me what might be wrong? Btw. Is there any package that deals with this kind of sensor? Maybe I should use rosserial with Arduino?

My publisher:

#!/usr/bin/env python
import rospy
import serial
from ultrasonic_sensor.msg import distance_cm

def main():
port = "/dev/ttyUSB0"
ser = serial.Serial(port, 9600)
ser.baudrate = 9600
rospy.init_node("ultrasonic_distance")
pub = rospy.Publisher("ultrasonic_data", distance_cm, queue_size=1)
r = rospy.Rate(5)
msg = distance_cm()

while not rospy.is_shutdown():
#print(ser.readline()) - also not working properly, no update 
msg.distance = int(ser.readline().decode("utf-8").strip('\n').strip('\r'))
pub.publish(msg)
r.sleep()

main()

2018-10-21 04:56:54 -0500 received badge  Scholar (source)
2018-10-21 04:56:48 -0500 received badge  Popular Question (source)
2018-10-20 15:39:41 -0500 asked a question How to correctly publish data from an analog sensor

How to correctly publish data from an analog sensor Hi. I have an ultrasonic sensor (SRF 06 - current loop - this sensor