Comments (15)
画像をとるプログラムなのですが、コードの書き方が分かりません。
baxterを使って画像をとる場合、どういったコードを書けばよいのでしょうか。
from jsk_apc.
ここで紹介されているcamera_control.py
とかが参考になると思います。
https://github.com/RethinkRobotics/sdk-docs/wiki/Camera-Control-Example
from jsk_apc.
できたら私も使いたいですね。
http://wiki.ros.org/cv_bridge
で、rosのメッセージをopencvのmatrixに変える方法が分かると思います。
point_cloudも取得できたらうれしいです。完全に私の希望ですが
from jsk_apc.
とりあえず、
$ ./baxter.sh sim
$ roslaunch baxter_gazebo baxter_world.launch
# on new terminal
$ ./baxter.sh sim
$ rosrun image_view image_view image:=/cameras/left_hand_camera/image
# then right button click to save the frame to ~/CATKIN_WORKSPACE/
とすれば写真が撮れることが分かりました。
次はServiceでリクエストを受け取ったら、写真をとるようにしたいです。
from jsk_apc.
https://github.com/jsk-ros-pkg/jsk_robot/blob/master/jsk_pr2_startup/jsk_pr2_lifelog/tweet_client.l#L72
見てください.
カメラの画像をキャプチャしてファイルに保存します.
On Wed, Nov 5, 2014 at 8:51 PM, Tomoya Yoshizawa [email protected]
wrote:
とりあえず、
$ ./baxter.sh sim
$ roslaunch baxter_gazebo baxter_world.launch# on new terminal
$ ./baxter.sh sim
$ rosrun image_view image_view image:=/cameras/left_hand_camera/image# then right button click to save the frame to ~/CATKIN_WORKSPACE/とすれば写真が撮れることが分かりました。
次はServiceでリクエストを受け取ったら、写真をとるようにしたいです。
—
Reply to this email directly or view it on GitHub
#9 (comment).
from jsk_apc.
https://github.com/ros-perception/image_pipeline/blob/indigo/image_view/src/nodes/image_saver.cpp
にサービスコールでファイルを保存するものがありますね.
On Wed, Nov 5, 2014 at 9:45 PM, Kei Okada [email protected]
wrote:
https://github.com/jsk-ros-pkg/jsk_robot/blob/master/jsk_pr2_startup/jsk_pr2_lifelog/tweet_client.l#L72
見てください.
カメラの画像をキャプチャしてファイルに保存します.On Wed, Nov 5, 2014 at 8:51 PM, Tomoya Yoshizawa <[email protected]
wrote:
とりあえず、
$ ./baxter.sh sim
$ roslaunch baxter_gazebo baxter_world.launch# on new terminal
$ ./baxter.sh sim
$ rosrun image_view image_view image:=/cameras/left_hand_camera/image# then right button click to save the frame to ~/CATKIN_WORKSPACE/とすれば写真が撮れることが分かりました。
次はServiceでリクエストを受け取ったら、写真をとるようにしたいです。
—
Reply to this email directly or view it on GitHub
#9 (comment).
from jsk_apc.
baxterのメーリスに質問したところ、シミュレータではcamera_control.pyは動かないそうです。
実機では動きました。(head_cameraはopenできなかったですが)
https://groups.google.com/a/rethinkrobotics.com/forum/#!topic/brr-users/aYOY1DOqtzM
from jsk_apc.
前回のゼミ中に岡田さんがやっていた画像取得は、シミュレーター上でもできますか。
できるなら、どのようにやっていたか教えていただきたいです。
from jsk_apc.
https://github.com/jsk-ros-pkg/jsk_robot/blob/master/jsk_baxter_robot/jsk_baxter_startup/jsk_baxter_lifelog/baxter_tweet.launch#L6
のようにすれば立ち上げられます.
コマンドラインからは
rosrun image_view image_saver image:=/cameras/head_camera/image
_save_all_image:=false _filename_format:=/tmp/baxter_camera.png
とします.
ただ,学内にいたらrossetrobotで実機にROS_MASTER_URIにすればノードはすでに立ち上がっているので,
シミュレータ無しで使える気がします
2014-11-14 2:58 GMT+09:00 Tomoya Yoshizawa [email protected]:
前回のゼミ中に岡田さんがやっていた画像取得は、シミュレーター上でもできますか。
できるなら、どのようにやっていたか教えていただきたいです。—
Reply to this email directly or view it on GitHub
#9 (comment).
from jsk_apc.
baxterのシミュレータを起動して、
$ ./baxter.sh sim
$ rosrun image_view image_saver image:=/cameras/head_camera/image _save_all_image:=false _filename_format:="/tmp/baxter_camera.png"
#on new terminal
$ ./baxter.sh sim
$ rosservice call /image_saver_1415961167687893497/save
とすれば画像を取得することができましたが、最後のrosserviceの部分で
$rosservice call /image_saver/save
というようにできないのですが、シミュレータ上だからでしょうか。
岡田さんにやっていただいたときは上記のようにできていたので、実機でないといけないのでしょうか。
from jsk_apc.
rosrun image_view image_saver image:=/cameras/head_camera/image _save_all_image:=false _filename_format:="/tmp/baxter_camera.png" __name:=image_saver
として立ち上げると
$rosservice call /image_saver/save
できると思います.
http://answers.ros.org/question/31944/rosrun-node_name/
rosrun image_view image_savermage:=/cameras/head_camera/image _save_all_image:=false _filename_format:="/tmp/baxter_camera.png"
は
rosrun image_view image_saver image:=/cameras/head_camera/image _save_all_image:=false _filename_format:="/tmp/baxter_camera.png"
の間違いでしょうか.
from jsk_apc.
そうです、書き間違いでした。
修正しました。
from jsk_apc.
This is old. I close.
from jsk_apc.
ここでの議論は適切にマージされましたでしょうか(どこかのlaunchの中にimage_viewを入れるとか)
それとも,もう作戦上必要ない?
from jsk_apc.
He sent PR.
https://github.com/start-jsk/2014-semi/pull/54/files
But it is not merged, and it's not used.
from jsk_apc.
Related Issues (20)
- cannot find method :speak in (send *ri* :speak (
- Baxter rotates its wrist to pick an object in tote (Beta) HOT 4
- after ros_control_node error, prismatic joint does not move HOT 1
- Release 4.2.1 HOT 1
- 5.0.0: ARC New Demo HOT 5
- baxter-c1 PC replacement HOT 2
- ERROR: no rosdep rule for 'libcmt' HOT 7
- Automated Build For Docker HOT 4
- baxter.launch in jsk_arc2017_baxter does not work on baxter-c1 HOT 3
- Cupy cannot use cuDNN on baxter-c1 HOT 1
- [sphand_ros] Infinite loop in I2C resetting
- [sphand_ros] Error when servo is initially off
- catkin_virtualenv fails to construct environment HOT 5
- gripper-v8の現在の問題点
- Cannot import matplotlib.pyplot on kinetic and melodic travis tests HOT 3
- Possibility of missing file. HOT 11
- How to generate my synthetic2d dataset and train in instance-occlsegm demo HOT 1
- travis-ci.comへの移行 HOT 2
- URDFのmaterialで名前衝突が起きている
- completely move to GA, disable travis and dockerhub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsk_apc.