Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

booleans not shown in 'rostopic echo -p /topic'

My issue was that a boolean field (bool) in my custom message was displayed when using 'rostopic echo /topic_name' but not when using 'rostopic echo -p /topic_name'.

I want to use the -p option to get a more concise output with 'rostopic echo -p /topic > file.txt' for use with Matlab. (The time it takes for Matlab to parse file.txt is significant, which is why I want the -p option)

Answer: I already found a workable solution by changing 'bool' to 'uint8' in my .msg file.

booleans not shown in 'rostopic echo -p /topic'

My issue was that a boolean field (bool) in my custom message was displayed when using 'rostopic echo /topic_name' but not when using 'rostopic echo -p /topic_name'.

I want to use the -p option to get a more concise output with 'rostopic echo -p /topic > file.txt' for use with Matlab. (The time it takes for Matlab to parse file.txt is significant, which is why I want the -p option)

Answer: I already found a workable solution by changing 'bool' to 'uint8' in my .msg file.

booleans not shown in 'rostopic echo -p /topic'

My issue was that a boolean field (bool) in my custom message was displayed when using 'rostopic echo /topic_name' but not when using 'rostopic echo -p /topic_name'.

I want to use the -p option to get a more concise output with 'rostopic echo -p /topic > file.txt' for use with Matlab. (The time it takes for Matlab to parse file.txt is significant, which is why I want the -p option)