The GetPositionList.srv file was not found.2018-07-10T06:00:23+00:00

Forums General General Chat The GetPositionList.srv file was not found.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • sun
    Participant
    Post count: 2

    There is a GetPositionList in niryo_one_msgs / srv.
    When rpi_example_python_api.py is executed, the following error occurs.

    niryo@niryo-desktop:~/catkin_ws/src/niryo_one_python_api/examples$ python rpi_example_python_api.py
    Traceback (most recent call last):
    File “rpi_example_python_api.py”, line 4, in <module>
    from niryo_one_python_api.niryo_one_api import *
    File “/home/niryo/catkin_ws/src/niryo_one_python_api/src/niryo_one_python_api/niryo_one_api.py”, line 34, in <module>
    from niryo_one_msgs.srv import GetPositionList
    ImportError: cannot import name GetPositionList

    I want to know why an error occurs.

    • This topic was modified 4 months, 1 week ago by  sun.
    Edouard Renard
    Keymaster
    Post count: 110

    It seems that you have updated the Niryo ROS packages from github. When you do that, you also need to recompile the code. (a tutorial will be released soon on how to do that).

    First, stop the current ROS execution (takes a lot of RAM) : sudo systemctl stop niryo_one_ros.service

    Then : cd ~/catkin_ws

    And : catkin_make -j2

    Finally, you can restart the ROS code (sudo systemctl start niryo_one_ros.service)

    Let me know if you still have the problem after doing that

    sun
    Participant
    Post count: 2

    I have two problems.

    1. After catkin_make -j2, the following error occurred.
    Unable to register with master node [http: // localhost: 11311]: master may not be running. Will keep trying.
    Changing the localhost part did not change anything.

    2. Robot’s LED does not change from red to blue.
    I waited.
    I have been waiting a day.
    Is it related to the above error ??

    Edouard Renard
    Keymaster
    Post count: 110

    Could you explain the exact steps you followed before you got this error ?

    Also, yes, for your question 2., the LED will not switch to blue, because it seems that the Niryo One ROS stack is not running in the first place.

    Could you also try to flash a new microSD card with the 1.1.0 Rpi Image (you can download it here), and see if everything is working well ?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.