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

Add files via upload #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add files via upload #278

wants to merge 2 commits into from

Conversation

hubfnick
Copy link

name of the files added is 'ros12p.py'

Copy link
Member

@k-okada k-okada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ぜひ git commit , git push でファイルを追加してみましょう

@@ -0,0 +1,18 @@
#!/usr/bin/env python
# 必要なpackageのimport
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ちょっと古い書き方ですが2行目には
# -*- coding: utf-8 -*-
を入れておくと良いです
http://osksn2.hep.sci.osaka-u.ac.jp/~taku/osx/python/encoding.html

ros12p.py Outdated
marker.position=Point(msg.rect.center.x,msg.rect.center.y,0) #ImageMarker2においてgeometry_msgs/Point position # used for CIRCLE/TEXT, 2D in pixel-coords.マーカーの位置を、msg.rectの中心に設定する。
pub.publish(marker)#markerを送信する

rospy.init_node('client')#nodeの名前(これによりMasterと通信できるようになる)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このインデント間違えている気がします
せっかくなのでノード名はプログラムを表すものにしてみましょう

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

Successfully merging this pull request may close these issues.

2 participants