Robotics StackExchange | Archived questions

Question about roslaunch command with script

Hi, I am roslaunching the GPS driver node inside the bash file. When I have a successful GPS location node is publishing it, when it doesn't it prints some message. When I run it alone without the bash file it has a 0.8 Hz frequency, but when I run it within the bash script it runs it with 2 Hz and sometimes returns the same (wrong) value for some time (40 s and longer). Do you have an idea what to check or change, I know that I can open another terminal within the bash script but I am interested in why it doesn't work this way properly. I am printing just a message if a GPS message is not valid so although python is slower that can't be the reason. Furthermore, GPS antenna is also not the season because a ROS driver works okay standalone. Could someone refer to some literature or had the same problem - for getting GPS I am using a serial library inside python with the command: AT+CGPS=1,1 (standalone mode). Could it be possible to have some connection with the time delay in writing and receiving messages with a serial connection?

Thank you in advance and kind regards.

Asked by dembele123 on 2022-08-25 08:46:31 UTC

Comments

I don't know the answer, so I cannot help with your actual question, but I'd suggest improving the layout of your post a bit.

Please add a few newlines, and split the text into a few paragraphs. It's currently a wall of text, with no structure and a bit of meandering.

You'll also want to keep your post to one question.

Asked by gvdhoorn on 2022-08-29 00:13:07 UTC

Answers