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

jsk_spot_robot package for spot arm #1701

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

Conversation

k-okada and others added 30 commits September 29, 2022 21:14
* add body-pose method

* add calculate rpy -> quaternion methods

* adapt create-quaternion func to the body-pose method

* add args
* [spoteus][spoteus_demo] create spoteus_demo package

* [spoteus_demo] add shebang and change permission

* [spoteus_demo] add gitignore to autowalk directory

* [jsk_data] add auto download script for autowalk data

* [spoteus_demo] rename sample scripts, add comments and update filepath to relative path from this package

* [jsk_spot_robot] update jsk_spot.rosinstall to add jsk_common

* [spoteus_demo] udpate package.xml

* [spoteus_demo] fix format
* Update README.md

* Update README.md

add $rosdep update, fix file path in pip3 install and fix launch file name
`robot-database.jsk.imi.i.u-tokyo.ac.jp` is CNAME of `musca.jsk....` 
maybe this is the cause of following error
```
    [/message_store /opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py:753] [ERROR] [1681119907.337053]: bad callback: <bound method MessageStore.insert_ros_msg of <__main__.M
essageStore object at 0x7f750d1860>>                                                                                                                                                 Traceback (most recent call last):                                                                                                                                                   
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback                                                                                     cb(msg)                                                                                 
  File "/home/spot/ws/src/mongodb_store/mongodb_store/scripts/message_store_node.py", line 103, in insert_ros_msg                                                                        self.insert_ros_srv(msg)                                                                                                                                                         
  File "/home/spot/ws/src/mongodb_store/mongodb_store/scripts/message_store_node.py", line 152, in insert_ros_srv                                                                        dc_util.store_message(extra_collection, obj, meta, obj_id)                                                                                                                       
  File "/home/spot/ws/src/mongodb_store/mongodb_store/src/mongodb_store/util.py", line 258, in store_message                                                                             return collection.insert(doc)                                                                                                                                                    
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 2941, in insert                                                                                                      check_keys, manipulate, write_concern)                                                                                                                                           
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 599, in _insert                                                                                                      bypass_doc_val, session)                                                                                                                                                         
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 580, in _insert_one                                                                                                  _check_write_command_response(result)                                                       
  File "/usr/lib/python3/dist-packages/pymongo/helpers.py", line 207, in _check_write_command_response                                                                               
    _raise_last_write_error(write_errors)                                                                                                                                              File "/usr/lib/python3/dist-packages/pymongo/helpers.py", line 188, in _raise_last_write_error                                                                                     
    raise DuplicateKeyError(error.get("errmsg"), 11000, error)                                                                                                                       pymongo.errors.DuplicateKeyError: E11000 duplicate key error collection: jsk_robot_lifelog.strelka index: _id_ dup key: { : ObjectId('6433daa31cf4582bb939adf7') }                   
                                  
```
…changes

Pr/spot arm/update internal changes
…ction

Temp 20230418 internal interaction
@keitayoneda
Copy link

keitayoneda commented Nov 15, 2023

kinematic_simulator上で起動する際にsend *ri* :power-onするとFailed to establish connection to service serverというエラーが出て起動できなかった
今はspot-interface.lのL526あたりのwhile文をコメントアウトして起動するようにしている
[該当箇所(]https://github.com/k-okada/jsk_robot/blob/4e2bee530757a88b27562fb0b8d3f65a6bfef61f/jsk_spot_robot/spoteus/spot-interface.l#L526)

@keitayoneda
Copy link

spot-initを一行ずつ実行していったところ、spot-interfaceのコンストラクタ(:init)で以下のエラーが出た
Screenshot from 2023-11-15 17-00-32

別にターミナルを立ち上げてsourceしたあとに指示通り

roslaunch spot_driver driver.launch

してみると、

ModuleNotFoundError: No module named 'bosdyn`

と言われたので公式のページを参考に

python3 -m pip install --upgrade bosdyn-client bosdyn-mission bosdyn-choreography-client

としてやり直したところ今度は

ModuleNotFoundError: No module named 'vision-msgs`

と言われたので

sudo apt install ros-noetic-vision-msgs

でvision-msgsを入れた。その再びroslaunchすると今度は以下のようにエラーがでた。これはこのlaunchファイルが実機対応?のものなためだと考えられる。
Screenshot from 2023-11-15 17-29-16

そこで他のlaunchファイルを探したところdriver_moch.launchというものがあったので先程のlaunchのコマンドをこれに書き換えて

roslaunch spot_driver driver_moch.launch

としたところエラーが出なくなった

@keitayoneda
Copy link

roslaunchに関するエラーはkinematics simulatorを使う上では関係なかった
根本的にはspot-initがkinematics simulatorを使うことを想定していなかったのが原因だった
remove error in spot-init with kinematics simulator #103

@k-okada k-okada changed the title jsk_spot_robot pacage for spot arm jsk_spot_robot package for spot arm Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants