rosserial_stm32 icon indicating copy to clipboard operation
rosserial_stm32 copied to clipboard

Topics are not being seen by ROS

Open Abo3abed opened this issue 4 years ago • 4 comments

Hey! I'm using your 'chatter' example to perform a simple publisher program, and after setting up the communication everything works fine except for the topic 'chatter' it's not being seen even when using 'rostopic list'. can you please tell why this is happening? thanks in advance

Abo3abed avatar Mar 28 '20 22:03 Abo3abed

Hi, You have to launch rosserial_python to subscribe to topics from embedded devices.

yoneken avatar Mar 30 '20 07:03 yoneken

Thank you for your time! But when I run rosserial_python serial_node.py _port:= _baud:= it gives me an error! [ERROR] [1585574845.599400]: Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

Do I have to add the stm32 project to CmakeList.txt or package.xml ? or even to have it inside the ros package workspace ? Note: I'm using ros-melodic

Abo3abed avatar Mar 30 '20 13:03 Abo3abed

I used to get that error and I fixed that by correcting the argument _baud in rosserial_python serial_node.py _port:= _baud:= to match the actual USART2 baudrate

5730289021-NN avatar Apr 28 '20 18:04 5730289021-NN

Thank you for your helpful advice! Yes. You have to direct your actual device with the arguments. something like,

rosserial_python serial_node.py _port:=/dev/ttyACM0 _baud:=38400

Actually, the default baudrate of rosserial is 38400.

yoneken avatar May 02 '20 23:05 yoneken