setoros_beadsee

Public

@trihome

Download board files

Files for version 1. Pick what you came for.

Share setoros_beadsee

Check access before sharing the link.

Who can open this board

Anyone can open this board. No sign-in is required.

This link opens the latest version. Copying it does not grant additional access.

Loading…

README

アイロンビーズセッター エンドエフェクタ制御ノード

1.Requirement

  • RaspberryPi 3B+, 4B+
  • Raspbian Buster
  • python 2.x
  • python-serial

2.Installation

ROS

Raspbianの標準パッケージを使います。 (ROS公式パッケージを使ってもOK)

$ sudo apt install ros-desktop-full-dev ros-desktop-full-python-dev python-catkin-tools -y
$ sudo rosdep init
$ rosdep update

ライブラリ

$ sudo apt install python-pip python-serial -y

プログラム

$ pwd
~/catkin_ws/src/
$ git clone https://github.com/trihome/
$ catkin_make

3.Usage

ターミナル1

ROS Launchを起動 (一緒に制御用ノードも立ち上がります)

$ source ~/catkin_ws/devel/setup.bash
$ cd ~/catkin_ws/src/beadsee/node
~/catkin_ws/src/beadsee/node $ roslaunch beadsee beadsee.launch
(・・・省略・・・)
PARAMETERS
 * /rosdistro: Debian
 * /rosversion: 1.14.3
NODES
  /
    beadsee (beadsee/BeadsEe.py)
auto-starting new master
process[master]: started with pid [8416]
ROS_MASTER_URI=http://raspi4:11311
setting /run_id to 25a0847c-9bd4-11ea-ae8b-dca63297c4da
process[rosout-1]: started with pid [8427]
started core service [/rosout]
process[beadsee-2]: started with pid [8430]
[INFO] [1590114615.424511]: [BeadsEe.py] Do...(Topic: [Pub: mes_beadseeres, Sub: mes_beadsee])

(ターミナル2実行後)
[INFO] [1590114620.945803]: [BeadsEe] Recieved command: grub
[INFO] [1590114625.961804]: [BeadsEe] Recieved command: release

ターミナル2

制御サンプルを実行します。

$ source ~/catkin_ws/devel/setup.bash
$ cd ~/catkin_ws/src/beadsee/node
~/catkin_ws/src/beadsee/node $ ./controlsample.py
[INFO] [1590114618.924836]: [controlsample.py] Do...(Topic: [Pub: mes_beadsee, Sub: mes_beadseeres])
[INFO] [1590114618.930231]: * ControlSample Do...
[INFO] [1590114620.937398]:   > GRUB
[INFO] [1590114620.943944]:     Waiting...
[INFO] [1590114624.038836]: [ControlSample] Recieved result: 1
[INFO] [1590114625.955183]:   > RELEASE
[INFO] [1590114625.961367]:     Waiting...
[INFO] [1590114629.046250]: [ControlSample] Recieved result: 1
[INFO] [1590114630.974127]: * ControlSample DONE
[INFO] [1590114630.979525]: [controlsample.py] Done.
~/catkin_ws/src/beadsee/node $

4.Note

注意点など

5.Author

6.License

This is under MIT license.

Comments

No comments yet. Be the first to ask about this board.

Ask about this board

Sign in to BoardRepo

New here? Signing in creates your account; there is no separate sign-up.