Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topics are not being seen by ROS #21

Open
Abo3abed opened this issue Mar 28, 2020 · 4 comments
Open

Topics are not being seen by ROS #21

Abo3abed opened this issue Mar 28, 2020 · 4 comments

Comments

@Abo3abed
Copy link

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

@yoneken
Copy link
Owner

yoneken commented Mar 30, 2020

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

@Abo3abed
Copy link
Author

Abo3abed commented Mar 30, 2020

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

@5730289021-NN
Copy link
Contributor

5730289021-NN commented Apr 28, 2020

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

@yoneken
Copy link
Owner

yoneken commented May 2, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants