rostopic pub does not allow carriage return or line feed in the string [closed]

asked 2020-05-11 22:31:35 -0500

borgcons gravatar image

Is there a why using rostopic pub to send a carriage return or line feed.

i.e.

rostopic pub topic std_msgs/String "data: 'hello world\r\n'"

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2020-05-12 03:52:31.790863

Comments

This would appear to be a duplicate of a question your posted yourself: #q335694?

gvdhoorn gravatar image gvdhoorn  ( 2020-05-12 03:51:35 -0500 )edit

And of #q248739, which afaict actually answers the question as well.

Assuming this is the case, I'm going to close this one as a duplicate.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-12 03:52:26 -0500 )edit

I did ask the question before but it was not answered and it was marked as such. The issue you mention in the comment asks for a similar answer but again it was not answered for CR and LF.

borgcons gravatar image borgcons  ( 2020-05-12 03:55:20 -0500 )edit

I'm not sure I understand.

Afaict #q248739 shows how to encode newlines into strings passed to rostopic.

I did ask the question before but it was not answered and it was marked as such.

it doesn't seem to be marked as answered to me.

If something hasn't been answered, please update it. Do not post duplicates.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-12 03:58:42 -0500 )edit

Also I would have reopened the issue back then but I was unable to. Just like this issue. I can't reopen this one either. I would just like an answer to the question. If it can't be done, fine.

borgcons gravatar image borgcons  ( 2020-05-12 03:59:24 -0500 )edit

I think I understand now the difference between something that has answers and the something that is answered. The latter has a check mark.

As for as #q248739 I still don't see how that allows be to send a string like "hello world\r\n"

borgcons gravatar image borgcons  ( 2020-05-12 04:08:57 -0500 )edit

Also I would have reopened the issue back then but I was unable to.

Your previous question wasn't closed. There is nothing to re-open as far as I can see.

Please update your original/previous question instead of posting this duplicate.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-12 04:15:53 -0500 )edit