Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rosbagを右クリックでplotする #1179

Closed
eisoku9618 opened this issue Oct 14, 2015 · 6 comments
Closed

rosbagを右クリックでplotする #1179

eisoku9618 opened this issue Oct 14, 2015 · 6 comments

Comments

@eisoku9618
Copy link
Contributor

@oshiroy 先ほど言っていた右クリックでrosbagをプロットする方法です.

mkdir -p ~/.gnome2/nautilus-scriptsして,以下のスクリプトをplot.shなどの名前で保存するとできました.

#!/bin/bash
gnome-terminal --window -e "rosrun jsk_tools bag_plotter.py $(rospack find jaxon_ros_bridge)/config/plotter.yaml  $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
exit
@garaemon
Copy link
Member

インタラクティブにyamlを選択

#!/bin/bash
gnome-terminal --window -e "rosrun jsk_tools bag_plotter.py $( zenity --file-selection --filename=$(rospack find jaxon_ros_bridge)/config/plotter.yaml --file-filter=*.yaml) $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
exit

@garaemon
Copy link
Member

screenshot_from_2015-10-15 01 34 27

@garaemon
Copy link
Member

zenityおもしろいですね

$ rostopic echo $(zenity --list --column topics $(rostopic list))
$ rosbag record $(zenity --list --column topics $(rostopic list) --multiple --separator=' ')

@eisoku9618
Copy link
Contributor Author

一番最初のスクリプトが動かなくなっている件ですが,手元では以下で動きました.

#!/bin/bash
gnome-terminal -t "my_title" -x $SHELL -ic 'rosrun jsk_tools bag_plotter.py `rospack find jaxon_ros_bridge`/config/plotter.yaml $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS'
exit

@eisoku9618
Copy link
Contributor Author

ダブルクォートではなくシングルクォートであることがポイント?

#!/bin/bash
gnome-terminal -t "aho" -x $SHELL -ic 'rosrun jsk_tools bag_plotter.py $(zenity --file-selection --filename=$(rospack find jaxon_ros_bridge)/config/plotter.yaml --file-filter=*.yaml) $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS'
exit

@wkentaro
Copy link
Member

同じことをpercolでやると
#1217
になりますか。

このIssueは閉じて大丈夫でしょうか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants