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

Revision history [back]

click to hide/show revision 1
initial version

I also apologize for commenting as an answer (however, 300 characters without advanced formatting was not likely going to cut it for a response).

First off, let me say that I understand that unix command hackery isn't everyone's cup of tea. A simple helper program, such as this Python equivalent to my example one-liner. As with the unix command, you may need to change the serial device name.

One the other hand, if you do want to get this working from the command line...

I assume you intentionally changed /dev/ttyACM0 to /dev/ttyUSB0. However, you may still want to check your device name and suffix number. I also assume you intentionally changed the - to STDOUT. Those changes aside, I do see a few potential typos:

1,1 s/^./raw\r\n\r\n/

should read:

1,1 s/^.*/raw\r\n\r\n/

(i.e. it's missing a star)

s/([0-9])/

should read:

s/\([0-9]*\)/

(i.e. missing a star and some quoting backslashes)

and your:

"type":std_msgs\/Int64"

is missing a quote after the :, it should read:

"std_msgs\/Int64"

finally (and this may be an intentional omission on your part) your orison is missing the final:

| nc localhost 9090

All that said, you can copy the exact orison (sans your device changes) from this pastebin, mentioned in the video.

I also apologize for commenting as an answer (however, 300 characters without advanced formatting was not likely going to cut it for a response).

First off, let me say that I understand that unix command hackery isn't everyone's cup of tea. A simple helper program, such as this Python equivalent to my example one-liner. one-liner does the same job just as well. As with the unix command, you may need to change the serial device name.

One the other hand, if you do want to get this working from the command line...

I assume you intentionally changed /dev/ttyACM0 to /dev/ttyUSB0. However, you may still want to check your device name and suffix number. I also assume you intentionally changed the - to STDOUT. Those changes aside, I do see a few potential typos:

1,1 s/^./raw\r\n\r\n/

should read:

1,1 s/^.*/raw\r\n\r\n/

(i.e. it's missing a star)

s/([0-9])/

should read:

s/\([0-9]*\)/

(i.e. missing a star and some quoting backslashes)

and your:

"type":std_msgs\/Int64"

is missing a quote after the :, it should read:

"std_msgs\/Int64"

finally (and this may be an intentional omission on your part) your orison is missing the final:

| nc localhost 9090

All that said, you can copy the exact orison (sans your device changes) from this pastebin, mentioned in the video.

I also apologize for commenting as an answer (however, 300 characters without advanced formatting was not likely going to cut it for a response).

First off, let me say that I understand that unix command hackery isn't everyone's cup of tea. A simple helper program, such as this Python equivalent to my example one-liner does the same job just as well. As with the unix command, you may need to change the serial device name.

One the other hand, if you do want to get this working from the command line...

I assume you intentionally changed /dev/ttyACM0 to /dev/ttyUSB0. However, you may still want to check your device name and suffix number. I also assume you intentionally changed the - to STDOUT. Those changes aside, I do see a few potential typos:

1,1 s/^./raw\r\n\r\n/

should read:

1,1 s/^.*/raw\r\n\r\n/

(i.e. it's missing a star)

s/([0-9])/

should read:

s/\([0-9]*\)/

(i.e. missing a star and some quoting backslashes)

and your:

"type":std_msgs\/Int64"

is missing a quote after the :, it should read:

"std_msgs\/Int64"
"type":"std_msgs\/Int64"

finally (and this may be an intentional omission on your part) your orison is missing the final:

| nc localhost 9090

All that said, you can copy the exact orison (sans your device changes) from this pastebin, mentioned in the video.