{"action":"created","issue":{"url":"https://api.github.com/repos/CopterExpress/clever/issues/69","repository_url":"https://api.github.com/repos/CopterExpress/clever","labels_url":"https://api.github.com/repos/CopterExpress/clever/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/CopterExpress/clever/issues/69/comments","events_url":"https://api.github.com/repos/CopterExpress/clever/issues/69/events","html_url":"https://github.com/CopterExpress/clever/issues/69","id":368084861,"node_id":"MDU6SXNzdWUzNjgwODQ4NjE=","number":69,"title":"Bug with import module rospy","user":{"login":"xsestech","id":29453203,"node_id":"MDQ6VXNlcjI5NDUzMjAz","avatar_url":"https://avatars1.githubusercontent.com/u/29453203?v=4","gravatar_id":"","url":"https://api.github.com/users/xsestech","html_url":"https://github.com/xsestech","followers_url":"https://api.github.com/users/xsestech/followers","following_url":"https://api.github.com/users/xsestech/following{/other_user}","gists_url":"https://api.github.com/users/xsestech/gists{/gist_id}","starred_url":"https://api.github.com/users/xsestech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsestech/subscriptions","organizations_url":"https://api.github.com/users/xsestech/orgs","repos_url":"https://api.github.com/users/xsestech/repos","events_url":"https://api.github.com/users/xsestech/events{/privacy}","received_events_url":"https://api.github.com/users/xsestech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-10-09T07:58:26Z","updated_at":"2018-10-09T11:53:57Z","closed_at":null,"author_association":"NONE","body":"When I started app I had this errors\r\n  import rospy\r\n  File \"/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/__init__.py\", line 47, in <module>\r\n    from std_msgs.msg import Header\r\n  File \"/opt/ros/kinetic/lib/python2.7/dist-packages/std_msgs/msg/__init__.py\", line 1, in <module>\r\n    from ._Bool import *\r\n  File \"/opt/ros/kinetic/lib/python2.7/dist-packages/std_msgs/msg/_Bool.py\", line 5, in <module>\r\n    import genpy\r\n  File \"/opt/ros/kinetic/lib/python2.7/dist-packages/genpy/__init__.py\", line 34, in <module>\r\n    from . message import Message, SerializationError, DeserializationError, MessageException, struct_I\r\n  File `\"/opt/ros/kinetic/lib/python2.7/dist-packages/genpy/message.py\",` line 44, in <module>\r\n    import yaml\r\nThis is my code\r\n\r\n```\r\n# -*- coding: utf-8 -*-\r\nimport rospy\r\nfrom clever import srv\r\nfrom std_srvs.srv import Trigger\r\nimport rospy\r\nfrom clever import srv\r\nfrom std_srvs.srv import Trigger\r\n\r\nrospy.init_node('xopter')   # название вашей ROS-ноды\r\n\r\n# Создаем прокси ко всем сервисам:\r\n\r\nget_telemetry = rospy.ServiceProxy('get_telemetry', srv.GetTelemetry)\r\nnavigate = rospy.ServiceProxy('navigate', srv.Navigate)\r\nnavigate_global = rospy.ServiceProxy('navigate_global', srv.NavigateGlobal)\r\nset_position = rospy.ServiceProxy('set_position', srv.SetPosition)\r\nset_velocity = rospy.ServiceProxy('set_velocity', srv.SetVelocity)\r\nset_attitude = rospy.ServiceProxy('set_attitude', srv.SetAttitude)\r\nset_rates = rospy.ServiceProxy('set_rates', srv.SetRates)\r\nland = rospy.ServiceProxy('land', Trigger)\r\nrelease = rospy.ServiceProxy('release', Trigger)\r\nz = 1  # высота\r\ntolerance = 0.2  # точность проверки высоты (м)\r\n\r\n# Запоминаем изначальную точку\r\nstart = get_telemetry()\r\n\r\n# Взлетаем на 2 м\r\nprint(navigate(z=z, speed=0.5, frame_id='fcu_horiz', auto_arm=True))\r\n\r\n# Ожидаем взлета\r\nwhile True:\r\n    # Проверяем текущую высоту\r\n    if get_telemetry().z - start.z + z < tolerance:\r\n        # Взлет завершен\r\n        break\r\n    rospy.sleep(5)\r\nres = land()\r\nif res.success:\r\n    print(\"Copter is landing\")\r\n```"},"comment":{"url":"https://api.github.com/repos/CopterExpress/clever/issues/comments/428163341","html_url":"https://github.com/CopterExpress/clever/issues/69#issuecomment-428163341","issue_url":"https://api.github.com/repos/CopterExpress/clever/issues/69","id":428163341,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODE2MzM0MQ==","user":{"login":"urpylka","id":5459558,"node_id":"MDQ6VXNlcjU0NTk1NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5459558?v=4","gravatar_id":"","url":"https://api.github.com/users/urpylka","html_url":"https://github.com/urpylka","followers_url":"https://api.github.com/users/urpylka/followers","following_url":"https://api.github.com/users/urpylka/following{/other_user}","gists_url":"https://api.github.com/users/urpylka/gists{/gist_id}","starred_url":"https://api.github.com/users/urpylka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urpylka/subscriptions","organizations_url":"https://api.github.com/users/urpylka/orgs","repos_url":"https://api.github.com/users/urpylka/repos","events_url":"https://api.github.com/users/urpylka/events{/privacy}","received_events_url":"https://api.github.com/users/urpylka/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T11:53:57Z","updated_at":"2018-10-09T11:53:57Z","author_association":"MEMBER","body":"I guess that is new stable version will be created on next week"}}
{"actor":{"display_login":"urpylka"}}