Horje
rostopic echo filter Code Example
rostopic echo filter
# rostopic echo option
# Display messages published to a topic.
$ rostopic echo /topic_name

# --offset
# Display time in messages as offset from current time (e.g. to calculate lag/latency).
$ rostopic echo --offset /topic_name

# --filter
# Display messages that match a specified Python expression.
$ rostopic echo --filter "m.data=='foo'"  /topic_name

# The Python expression can use any Python builtins plus the variable m (the message). For example, to filter based on the frame_id of the first transform in a tf/tfMessage:
$ rostopic echo --filter "m.transforms[0].child_frame_id == 'my_frame'" /tf

# -c
# Clear the screen after each message is published. Cannot be used with -p.
$ rostopic echo -c /topic_name

# -b
# Display messages in a bag file:
$ rostopic echo -b log_file.bag /topic_name

# -p
# Display messages in a matlab/octave-friendly plotting format. Cannot be used with -c.
$ rostopic echo -p /topic_name

# -w NUM_WIDTH New in Indigo
# Print all numeric values with a fixed width. 

# --nostr, --noarr
# Exclude string and array fields from the plotting output.
$ rostopic echo -p --nostr --noarr /topic_name

# -n COUNT New in C Turtle
# Echo COUNT messages and exit. 

# echo <topic-name/field>
# Display specific fields in a message.
$ rostopic echo /my_topic/field_name




Shell

Related
install torch2trt nvidia jetson Code Example install torch2trt nvidia jetson Code Example
bash perform operation on all files in directory Code Example bash perform operation on all files in directory Code Example
copy item with part of path not existing Code Example copy item with part of path not existing Code Example
git command to switch from my current branch to another in android studio Code Example git command to switch from my current branch to another in android studio Code Example
Error: Can't resolve @capacitor/dialog Code Example Error: Can't resolve @capacitor/dialog Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11