{"action":"closed","issue":{"url":"https://api.github.com/repos/jsk-enshu/robot-programming/issues/106","repository_url":"https://api.github.com/repos/jsk-enshu/robot-programming","labels_url":"https://api.github.com/repos/jsk-enshu/robot-programming/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/jsk-enshu/robot-programming/issues/106/comments","events_url":"https://api.github.com/repos/jsk-enshu/robot-programming/issues/106/events","html_url":"https://github.com/jsk-enshu/robot-programming/issues/106","id":185852117,"number":106,"title":"python のプログラムが動かない","user":{"login":"M-Onitsuka","id":22876342,"avatar_url":"https://avatars.githubusercontent.com/u/22876342?v=3","gravatar_id":"","url":"https://api.github.com/users/M-Onitsuka","html_url":"https://github.com/M-Onitsuka","followers_url":"https://api.github.com/users/M-Onitsuka/followers","following_url":"https://api.github.com/users/M-Onitsuka/following{/other_user}","gists_url":"https://api.github.com/users/M-Onitsuka/gists{/gist_id}","starred_url":"https://api.github.com/users/M-Onitsuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M-Onitsuka/subscriptions","organizations_url":"https://api.github.com/users/M-Onitsuka/orgs","repos_url":"https://api.github.com/users/M-Onitsuka/repos","events_url":"https://api.github.com/users/M-Onitsuka/events{/privacy}","received_events_url":"https://api.github.com/users/M-Onitsuka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-28T06:58:51Z","updated_at":"2016-11-28T02:52:59Z","closed_at":"2016-11-28T02:52:59Z","body":"```\n[ERROR] [WallTime: 1477637749.411129] [305.800000] bad callback: <function cb at 0x7f72bf993cf8>\nTraceback (most recent call last):\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py\", line 720, in _invoke_callback\n    cb(msg)\n  File \"test.py\", line 13, in cb\n    pub.publish(marker)\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py\", line 856, in publish\n    raise ROSSerializationException(str(e))\nROSSerializationException: field type must be an integer type\n```\n\nソースコードは\n\n```\n#!/usr/bin/env python\n\nimport rospy\nfrom opencv_apps.msg import RotatedRectStamped\nfrom image_view2.msg import ImageMarker2\nfrom geometry_msgs.msg import Point\n\ndef cb(msg):\n    print msg.rect\n    marker = ImageMarker2()\n    marker.type = ()\n    marker.position = Point(msg.rect.center.x, msg.rect.center.y, 0)\n    pub.publish(marker)\n\n\nrospy.init_node('client')\nrospy.Subscriber('/camshift/track_box',RotatedRectStamped,cb)\npub = rospy.Publisher('/image_marker', ImageMarker2)\nrospy.spin()\n```\n"}}
{"actor":{"display_login":"yuki-asano"}}