Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to disable gui in mint 
Shell :: vim plug 
Shell :: discord on linux 
Shell :: how to remove first line from output using awk 
Shell :: remove gitignore cache 
Shell :: undo git merge 
Shell :: how to install node.tar.xz in ubuntu 
Shell :: nmap os and version detection 
Shell :: adonisjs start 
Shell :: downooad sublime in linux mint using terminal 
Shell :: stop port in use 8000 
Shell :: git cleanup remove removed 
Shell :: bash replace symbolic links with original files 
Shell :: How to completely remove Mod Pagespeed from Ubuntu 
Shell :: open django terminal 
Shell :: libxml2 install 
Shell :: git pull use incoming changes. 
Shell :: apache .htaccess Option ubuntu 
Shell :: sudoless docker 
Shell :: linux create folder with date 
Shell :: powershell write return line in file 
Shell :: how to find maven home in linux 
Shell :: linux command after create folder cd it 
Shell :: why is gitlens not working on vscode 
Shell :: update linux history editor 
Shell :: snapd remove command 
Shell :: bash script template 
Shell :: Retrieve Linux command line history by date 
Shell :: uninstall lubuntu 
Shell :: usb sound card not working ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =