0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

設定:ドライバ:Raspberry Pi Mouse

Last updated at Posted at 2021-05-03

またまた久しぶりに触りました。
まずは、ubuntuのアップデートから行いました。
sudo apt-get update

久しぶりなので「Raspberry Piで学ぶ ROSロボット入門」を最初から読み直しています。

192.168.11.30

ubuntuのノートPCのCPUファンがうるさいので設定してみました。
私のノートPCは「escキー」でBIOS画面に入れました。

Raspberry Piで学ぶ ROSロボット入門の3.2項でエラーが出ました。
insmod: ERROR: could not insert module rtmouse.ko: Invalid module format
このページによると、「カーネルのバージョンと コンパイルしたドライバのバージョンが異なるのが原因のようです。」とのこと。
OSのバージョンを確認すると、VERSION="16.04.7 LTS (Xenial Xerus)
過去の自分の記事を見ると、「3.2.1章でデバイスドライバをインストールしなおしたら、うまく行くようになりました。」とのことなのでやってみます。
たしかに「ピッ」となって成功しました。

ubuntu@ubuntu:~$ ls -l /dev/rt*
crw-rw-rw- 1 root root 242, 0  5月  3 00:53 /dev/rtbuzzer0
crw-rw-rw- 1 root root 243, 0  5月  3 00:53 /dev/rtled0
crw-rw-rw- 1 root root 243, 1  5月  3 00:53 /dev/rtled1
crw-rw-rw- 1 root root 243, 2  5月  3 00:53 /dev/rtled2
crw-rw-rw- 1 root root 243, 3  5月  3 00:53 /dev/rtled3
crw-rw-rw- 1 root root 240, 0  5月  3 00:53 /dev/rtlightsensor0
crw-rw-rw- 1 root root 236, 0  5月  3 00:53 /dev/rtmotor0
crw-rw-rw- 1 root root 238, 0  5月  3 00:53 /dev/rtmotor_raw_l0
crw-rw-rw- 1 root root 239, 0  5月  3 00:53 /dev/rtmotor_raw_r0
crw-rw-rw- 1 root root 237, 0  5月  3 00:53 /dev/rtmotoren0
crw-rw-rw- 1 root root 241, 0  5月  3 00:53 /dev/rtswitch0
crw-rw-rw- 1 root root 241, 1  5月  3 00:53 /dev/rtswitch1
crw-rw-rw- 1 root root 241, 2  5月  3 00:53 /dev/rtswitch2

Qiitaの記事のMarkdown記法のページ見つけました。参考になります。

時刻も手動で設定しました。

sudo date -s "05/03 10:37 2021"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?