未分類

以前、MASの"アクティブエージェント"を調べて貰ったのですが、本日、大学の先生から"アクティビティエージェント"と違いを指摘されました。"アクティビティエージェント"とは何ですか?

「アクティビティエージェント」とは?

アクティビティエージェントとは、
「あらかじめ与えられた活動スケジュール(アクティビティプラン)に従って行動するエージェント」
を指します。

つまり、

  • 何時に

  • どこで

  • 何をするか
    事前に決まっている エージェントです。

例えば、

朝8時に自宅を出発し、駅まで歩き、電車で会社に行き、17時に退社してスーパーに寄り、帰宅する
というような「一日の予定表=アクティビティプラン」を持ち、これに沿って動くだけです。


対比:「アクティブエージェント」とは?

以前話題にした「アクティブエージェント」は、

  • 状況に応じて

  • 自律的に意思決定して

  • プランをその場で変更したり、行動を選択する
    エージェントです。

要するに、
受け身にスケジュールをなぞるだけ」のがアクティビティエージェント
自分で考えて臨機応変に動く」のがアクティブエージェントです。


まとめ表

 

項目 アクティビティエージェント アクティブエージェント
行動決定 事前に決められたスケジュールに従う 状況に応じて自律的に判断・行動
柔軟性 なし(スケジュール通り) あり(プラン変更可能)
典型例 通勤・通学のシミュレーション 災害時の避難行動シミュレーション
目的 交通量や移動需要の再現 状況適応や個別行動の再現

関連する有名な例

  • MATSim(Multi-Agent Transport Simulation)などは、アクティビティエージェントを使っています。

  • BDIモデル(Belief-Desire-Intention Model)などは、アクティブエージェント的な動きをさせるときに使われます。


つまり

今回教授が訂正されたのは、

「自律判断型エージェント(アクティブエージェント)じゃなくて、予定通り動く型(アクティビティエージェント)なんだよ」
という意味です。

この違いをわきまえておくと、研究の方向性や議論の立て方が大きく変わります。

 

2025,江端さんの忘備録

以前、私のコラムの読者の方から「江端さんは、その膨大な知識をどうやって得ているのですか」という質問を受けたことがあります。

A reader once asked me about my column, "Mr. Ebata, how did you acquire such vast knowledge?"

(現在は休止中ですが)私は、これまでに100本以上の技術コラムを寄稿してきました。そのため、そう思われたのだろうと思います。

(Although currently on hiatus,) I have contributed over 100 technical columns, which likely gave that impression.

しかし、上記の質問をされた方は、私について『大変な勘違い』をされています。

However, the person who asked that question has made a significant misunderstanding about me.

-----

私のコラム作成プロセスは、以下の通りです。

My column creation process is as follows.

(Step 1) コラムの依頼(テーマ)を受ける

(Step 1) Receive a request (theme) for a column.

(Step 2) ざっくりとしたマイルストーン(連載内容と回数)を決める(だいたい月一回)

(Step 2) Roughly set milestones (series content and number of installments), usually about once a month.

(Step 3) 必要に応じて、狂ったように文献を調査し、どこにでもインタビューに出かける

(Step 3) Conduct frenzied literature research and, if necessary, go anywhere for interviews.

(Step 4) 『自分なりの"話の仕方"と"感想"を持てる』ようになるまで、徹底的に調べ尽くす

(Step 4) Investigate thoroughly until I can form my way of telling the story and my impressions.

(Step 5) 上記(Step 4)を、WordとPowerPointの上にぶちまける

(Step 5) Copy the content from Step 4 into Word and PowerPoint.

(Step 6) (Step 3)に戻る

(Step 6) Return to Step 3.

ーー この繰り返しです。

ーー This cycle repeats endlessly.

-----

つまり、私は壮大な自転車操業をしているだけであり、私の頭の中に"膨大な知識"などというものは、まったく存在しません。

In short, I am merely engaged in a grand-scale bicycle operation, and there is no such thing as "vast knowledge" stored in my head.

私の人生において言えることは、「自分の意思で獲得した」と自信を持って言えるものは、一つもない、ということです。

What I can say about my life is that there is nothing I can confidently claim to have "acquired by my own will."

私の知識のすべては、「他人から与えられたタスク」によって動かされた結果に過ぎません。

All of my knowledge is merely the result of being driven by "tasks assigned by others."

「自分のやりたいこと」ーーそんなもの、私には存在しません。

"My own desires"—such things do not exist within me.

他人から与えられたタスクを、自分のやり方でやる ーー これが、私に許された唯一の裁量です。

Doing tasks assigned by others in my way—that is the only discretion I have been allowed.

-----

だから、私はずっと思っていました。

That’s why I have always thought:

『生成AI』に関してだけは、完全なお客さま(エンドユーザ)として利用のみに徹し、この分野にだけは絶対に手を出すまい、と。

When it comes to "generative AI," I will remain a complete customer (end-user) and never get involved in the development side.

しかし、どうやら世界は、この私に、そんな"日和見"を許してくれないようです。

However, it seems the world will not permit me such opportunistic neutrality.

『業務命令』ーー いつだって、これが私を動かす唯一のトリガーであり、これからもそうあり続けるのでしょう。

"Work orders"—they have always been the only trigger that moves me, and likely always will be.

-----

という訳で、私、連休で賑わう観光地とか空港とかのニュース(の録画)は、飛ばして見ています。

Therefore, I fast-forward through news recordings about tourist spots and airports bustling during the holidays.

私は、楽しそうにインタビューに応じている人に、呪いのオーラを出したくないんです。

I don't want to emit a negative aura toward people who cheerfully respond to interviews.

『自分のやりたいことが分からない』という方は、多分、ご自分のことを「不幸な人間」と思っているかもしれませんが ―― 『意外に、それは最高の人生なのかもしれないですよ』ということを、お伝えしたくて。

 

未分類

chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.city.yokohama.lg.jp/city-info/yokohamashi/tokei-chosa/portal/kankobutsu/index-j.files/honbun.pdf?utm_source=chatgpt.com

 

chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://businessyokohama.com/wp-content/uploads/2022/02/2021CityofYokohama_Statistics.pdf

https://jmap.jp/cities/detail/city/14108?utm_source=chatgpt.com

[1] 総務省統計局, "国勢調査報告(昭和35年)," 総務省統計局, 1960年.https://www.e-stat.go.jp/stat-search/files?page=1&toukei=00200521&tstat=000001036867
(英語表記例: Statistics Bureau of Japan, "Population Census Report (1960)," Statistics Bureau of Japan, 1960.)

2025,江端さんの忘備録

私が学生のころ、第二次AIブームのまっただなかで、その中で大いに流行ったのが「ファジイ推論」です。

When I was a student, we were in the midst of the second AI boom, and one of the major trends at that time was "fuzzy reasoning."

(これについては、こちら↓のコラムが詳しいのでご参照ください)。

(For more details on this, please refer to the column linked below.)

当時(たぶん今も)、コンピュータとは0/1だけで判断する計算機と考えられていたのですが、ファジイ推論は、「ものごとを白黒つけない」という考え方を拡張したものでした。

At the time (and probably even now), computers were considered machines that made decisions based solely on 0s and 1s, but fuzzy inference extended the idea of "not forcing things into black and white."

さらに、この「ものごとを白黒つけない」という考え方を、コンピュータのAND/OR/XOR/NANDの論理演算にも拡張させる「ファジイ論理」という概念まで導入できました。

Furthermore, this idea of "not forcing things into black and white" was expanded into computer logic operations, such as AND, OR, XOR, and NAND, introducing the concept of "fuzzy logic."

当時、私はそういう考え方があることは知っていたし、興味もありましたが、自分が当時取り組んでいた研究(ロボットの制御)とは、それほど関連性はありませんでした。

At that time, I was aware of such ideas and interested in them, but they were not particularly relevant to the research I was engaged in (robot control).

しかし、そんな私に「GOサイン」を出してくれたのが、石原好之教授でした。

However, it was Professor Yoshiyuki Ishihara who gave me the "green light."

教授は、ある会社から依頼されたパン焼き製造の制御案件を私にもってきて、その温度制御を、私にファジイ推論を使ってやってみることを勧められました。

The professor brought me a control project for bread baking, requested by a company, and encouraged me to try using fuzzy inference for temperature control.

私は早速シミュレーションに取りかかったのですが、それに要した時間が、"3日間"という超短期間だったことに、自分自身が衝撃を受けました。

I immediately started the simulation, and I was surprised that it only took me three days to complete.

―― システム構築、めちゃくちゃラク。

"Building the system was unbelievably easy."

なにしろ、数値パラメータを細かく調整する必要もなく、「庫内温度が急上昇したらスイッチを切れ」という自然言語の制御命令を追加するだけで、制御ができてしまう ―― ということに、衝撃を受けたのです。

After all, I was amazed that I could add a natural-language control command, such as "turn off the switch if the oven temperature rises sharply," without fine-tuning numerical parameters.

庫内の物理的環境も深く考慮することなく、「現場でパンを焼く人ならこうするだろうなぁ」と思える制御を、必要に応じてルールとして追加するだけで、それなりの制御ができてしまう。この事実に、本当に驚かされました。

Without thoroughly considering the physical environment inside the oven, can I create adequate control by simply adding rules based on what a baker at the scene would likely do? This truly astonished me.

そして、最大の衝撃は、「ルール同士が矛盾していても、かまわない」という、恐るべきアバウトさでした。

And the biggest shock was the incredible leniency; it didn’t matter even if the rules conflicted with each other.

これは、工学研究者(ただし学生)として、既存の制御概念が吹き飛ぶほどのパラダイムシフトでした。

For me, as an engineering researcher (albeit a student), it was a paradigm shift that shattered existing control concepts.

その辺りの話は、このコラムのページが詳しいです。

For more details on this point, please see the page linked in the column.

イラスト

-----

―― もしかしたら、物事は「白黒つけない」ほうが上手くいくのか?

Perhaps things work better if we don't try to force black-and-white judgments?

この発想を、私の人生の基本理念として植え付けたのが、「ファジィ制御」であり、「パン焼き装置」であり、そして「石原好之教授」であったと言っても、決して過言ではないと思います。

It would not be an exaggeration to say that this idea, planted as a fundamental principle of my life, was thanks to "fuzzy control," the "bread-baking device," and Professor Yoshiyuki Ishihara.

私は今でも、マルチエージェントシミュレーションのエージェントの自律判断ロジックに「ファジィ推論」を使い倒しています。

Even today, I extensively use "fuzzy inference" in the decision logic of agents in multi-agent simulations.

理由は「上手い、安い、早い」の三拍子が揃っているからです。

The reason is that it hits all three: "effective, inexpensive, and fast."

今でも、1日もらえれば、大抵のエージェントの心理モデル(正しく振る舞うかどうかはさておき)を作れる、という自信があります。

Even now, if given a day, I am confident that I can build a psychological model for most agents (whether they behave perfectly or not is another story).

というか、先日、大学の新人歓迎会で学生さんと話していたとき、「人間のように振る舞うアルゴリズム」の作り方について、パラメータのしきい値設定に苦慮している、という話を聞きました。

Actually, at a recent university welcome party, I spoke with a student who was struggling with setting threshold parameters to create "human-like behavior" algorithms.

江端:「なんでファジィ使わないの?」

Ebata: "Why don't you use fuzzy logic?"

と尋ねたら、

When I asked that,

学生さん:「"ファジィ"って何ですか?」

The student replied, "What does 'fuzzy' mean?"

と言われました。

That’s what he said.

私は多くは語りませんでしたが、「手を抜けるところは、できるだけ手を抜いた方がいい」と考えている私のような怠け者からすると、『もったいないなぁ』とは思いました。

I didn’t say much, but as someone who believes "you should cut corners where you can," I couldn't help but think, "what a waste."

-----

ということで、先生との思い出を記載させていただきました。

Thus, I have shared my memories related to the professor.

私は、5月の連休明けの博論審査の準備で、毎日ゾンビのように、計算と論文執筆に追われ、今回の祝賀会には出席できず誠に残念です。

Currently, I am preparing for my doctoral dissertation review right after the May holidays, spending every day like a zombie, overwhelmed with calculations and thesis writing, and I deeply regret that I cannot attend the celebration.

正直、5月に大量の核ミサイルが関東を襲来してくれないかな、と思うくらいの破壊的な精神状態になっております。

I am in such a destructive mental state that I almost wish a barrage of nuclear missiles would hit the Kanto region in May.

ともあれ、「石原好之先生祝賀OB会」にて、このページのURLを先生にお伝えいただければ幸いに存じます。

Nevertheless, I would be most grateful if you could share the URL of this page with Professor Ishihara at the "Professor Yoshiyuki Ishihara Celebration Alumni Meeting."

きっと、石原先生は笑ってくださることと思います――もし万が一、先生がお怒りになられた場合でも、そのご連絡は無用です。

I am sure Professor Ishihara will smile -- and even if, by some chance, he is upset, there is no need to inform me.

改めまして、石原好之先生の瑞宝中綬章受章、心よりお祝い申し上げます。

Once again, I sincerely congratulate Professor Yoshiyuki Ishihara on his conferment of the Order of the Sacred Treasure, Gold and Silver Rays.

江端智一

Tomoichi Ebata

ファジィカー

2025,江端さんの忘備録

先日テレビで、「スマホの利用で語彙力が落ちる」という話を耳にしました。

The other day, I heard on TV that "using smartphones reduces vocabulary skills."

こういう話は枚挙に暇がなく、新しい技術や文化の出現に対する漠然とした不安が源になっているようですが、すべてを無視するわけにもいきません。

These kinds of claims are endless and often stem from vague anxieties about new technologies or cultures, but we can’t ignore them entirely.

■「テレビを見るとバカになる」──これは、まずデタラメでしょう。

■ "Watching TV makes you stupid"? This is nonsense.

そもそも「バカ」の定義が不明確です。

To begin with, the term "stupid" is not clearly defined.

■「マンガを読むと知能が落ちる」──証拠はありませんし、読解力向上を示す研究も存在します。

■ "Reading manga lowers intelligence" ー There’s no evidence for this, and some studies even show it can improve reading comprehension.

■「YouTubeばかり見ていると集中力が落ちる」──統計的な裏付けは不十分です。

■ "Watching too much YouTube reduces concentration" ー There's insufficient statistical backing for this claim.

というか、YouTube視聴中はそれなりに集中していると思います。

If anything, people seem quite focused while watching YouTube.

■「電子辞書は紙の辞書より劣る」──学習効率に明確な差はないという研究が多く、私個人は電子辞書の方が圧倒的に優れていると思っています。

■ "Electronic dictionaries are inferior to paper ones" ー Many studies show no significant difference in learning efficiency, and I find electronic dictionaries vastly superior.

辞書で1語を探す間に、電子なら10語は調べられる。

With a paper dictionary, you find one word in the time it takes an electronic one to find ten.

そして、英語習得は「接触回数」が命だと信じています。

I believe that repeated exposure is key to mastering the English language.

■「AIに頼ると考える力が衰える」──これについては結論が出ていませんが、「AIに頼るとラクできる」ことには100%同意します。

■ "Relying on AI weakens your thinking ability" ー no conclusive evidence yet, but I 100% agree that "relying on AI makes life easier."

このあたりまでは、いずれもエビデンスに乏しい風評といえるでしょう。

Up to this point, most of these are unfounded rumors lacking solid evidence.

---

では、ここからは論文などで一定の裏付けがあるものをご紹介します。私のコメントも併せて記します。

Now, let’s look at topics that have some support in academic literature, along with my commentary.

■「スマホの利用で語彙力が落ちる」── 一部の研究で支持されていますが、私は懐疑的です。

■ "Using smartphones reduces vocabulary" ー some studies support this, but I’m skeptical.

わからない語彙をスマホで“秒で”調べられるのは、むしろ語彙力強化につながると思うのです。

Being able to look up unfamiliar words in seconds should help increase vocabulary.

ただし、そもそも調べる気がない人にとっては、確かに語彙力は落ちるかもしれません。

That said, if someone doesn’t bother to look things up, their vocabulary might indeed suffer.

■「SNSを使いすぎるとコミュニケーション能力が低下する」──一部の研究がこれを支持しているようです。

■ "Overuse of social media lowers communication skills" ー some studies seem to support this.

ただ、私はSNSを使っていないのに、コミュニケーションが得意ではないので何とも言えません(得意そうに見られていることは自覚していますが)。

However, I don’t use social media and still struggle with communication, so I wouldn’t say that ー though I know people often think otherwise.

■「ネット検索ばかりしていると記憶力が落ちる」──これは、かなりの研究で支持されているようです。

■ "Constant internet searching reduces memory retention" ー this is supported by a considerable amount of research.

■「ゲームばかりやっていると暴力的になる」──肯定・否定ともに多様な研究があります。

■ "Playing too many games makes you violent" ー there are studies both supporting and refuting this claim.

私はアナログ・デジタル問わずゲーム全般に弱く、やりません(勝てないからです)。

I’m terrible at games, both analog and digital, and don’t play them because I always lose.

それでも私のコラムには、ときどきオフェンシブな発言が出てきます。

Yet, my columns still occasionally feature offensive remarks.

ちなみに、ゲームはeスポーツとして公式に認められた現在、「ゲーム=暴力的」という論理は、「スポーツやってる奴は暴力的だ」という主張と同レベルでして、私は個人的にこれを肯定します。

Now that gaming is officially recognized as an e-sport, saying "games cause violence" is as logical as saying "sports players are violent," ー And I support that logic (as my own opinion).

■「写真を撮りすぎると記憶に残らない」──これは、多くの研究で支持されています。

■ "Taking too many photos diminishes memory" ー This is widely supported by research.

私は旅行先でもほとんど写真を撮りません。

I rarely take photos, even when traveling.

なぜなら、見返す機会がほぼないからです。

Because I hardly ever look at them afterward.

だったら、ライブの風景を目に焼きつけた方がマシだと思っています。

In that case, it’s better to imprint the live scenery in my mind.

---

人類は、新しいメディアが出るたびに「知能が下がる」「記憶が減る」と騒ぎ立ててきました。

Humanity has always panicked about "declining intelligence" or "weakened memory" every time a new medium appears.

でも今のところ、滅んではいません ーー 不思議ですね。

But so far, we haven’t gone extinct ー curious.

ChatGPTは怖くない ~使い倒してラクをせよ

2024,江端さんの技術メモ

仮想RTSPカメラの作り方と使い方のメモ

2024/11/21
江端
この仮想RTSPカメラは、クライアント(受信側)の接続を止めて、再度接続しようとするとクライアント(受信側)に動画が表示されなくなる、という欠点が発覚しております(2024/11/26) 
をお勧めします。
https://wp.kobore.net/2024/12/06/18206/

1. 背景と要件

1.1. 背景

  1. 地車間実験において複数カメラを準備する為、複数の仮想のRTSPカメラが必要となったため、これに対応する

1.2. 仮想RTSPカメラの要件

  1. 1台のWindowsPCにて最大4台程度の仮想RTSPカメラが実現できること
  2. 仮想カメラは指定したmp4ファイルの映像を配送する
  3. 上記のmp4ファイルは繰り返し再生できることが望ましい
  4. 仮想RTSPカメラは、通常のRTSPカメラと同様にrtsp://127.0.0.1:8554/testという形式で指定できること
  5. できるだけ簡易かつ汎用的なコマンドで実現できることが望ましい。

1.3. 事前検討

  1. 仮想RTSPカメラの実現方法としては、(1)ffmpeg, (2)Gstreamer, (3)VLC(VideoLAN Client), (4)C言語(Gstreamerライブラリ)が挙げられている。
  2. 検討の結果、mp4ファイルを繰り返し再生できる方法は指定されているが、試したところ実際に動いたのはVLCのみだったの、VLCで実現することにした。
  3. vlcのバージョンは、3.0.20以上であること(3.0.14では稼動しないことを確認済)。

2. 説明用の設定

  • 仮想RTSPカメラを設定するWindows10パソコンのIPアドレスを、便宜的に、192.168.0.3として取り扱うこととする。
  • 仮想RTSPカメラを再生するWindows10パソコンのIPアドレスを、便宜的に、192.168.0.25として取り扱うこととする。

3. VLCによる仮想カメラの作り方

3.1. 事前準備: 送信側(192.168.0.3)のファイアウォール設定設定

本節の設定は、設定しなくても動くこともあるので、動かなくなった場合のみに対応する。

送信側のVLCは、RTSP制御パケット(TCP:8554)とRTPデータストリーム(UDPポート)を送信する。これらがブロックされないようにする。

3.1.1. 受信規則の設定(クライアントからのRTSP制御パケットを許可)を許可)

  1. 「Windowsセキュリティ」懼「ファイアウォールとネットワーク保護」懼「詳細設定」を開きます。
  2. 左側の「受信規則」を右クリックして「新しい規則」を選択。
  3. **「ポート」**を選択して「次へ」。
  4. TCPを選択し、「特定のローカルポート」に8554を入力して「次へ」。
  5. 「接続を許可する」を選択し「次へ」。
  6. プロファイルを選択(プライベートにチェックを入れる)し「次へ」。
  7. 名前を設定(例: VLC RTSP TCP)して「完了」をクリック。

3.1.2. 送信規則の設定(RTP/RTCPデータを送信)を送信)

  1. 同様に「送信規則」を右クリックして「新しい規則」を選択。
  2. **「ポート」**を選択して「次へ」。
  3. UDPを選択し、「特定のローカルポート」に5000-5500を入力して「次へ」。
  4. 「接続を許可する」を選択し「次へ」。
  5. プロファイルを選択(プライベートにチェックを入れる)し「次へ」。
  6. 名前を設定(例: VLC RTP UDP)して「完了」をクリック。

3.2. 事前準備: 受信側(192.168.0.25)のファイアウォール設定設定

受信側が、Windows10でない場合は、本節は無視して下さい。

受信側のGStreamerは、RTSP制御パケット(TCP:8554)とRTPデータストリーム(UDPポート)を受信します。これらを許可します。

3.2.1. 受信規則の設定(RTSPとRTPストリームの受信を許可)を許可)

  1. 「Windowsセキュリティ」懼「ファイアウォールとネットワーク保護」懼「詳細設定」を開きます。
  2. 左側の「受信規則」を右クリックして「新しい規則」を選択。
  3. **「ポート」**を選択して「次へ」。
  4. TCPを選択し、「特定のローカルポート」に8554を入力して「次へ」。
  5. 「接続を許可する」を選択し「次へ」。
  6. プロファイルを選択(プライベートにチェックを入れる)し「次へ」。
  7. 名前を設定(例: GStreamer RTSP TCP)して「完了」をクリック。

3.2.1.1. RTPストリームのポート設定設定**

  1. 再度「受信規則」を右クリックして「新しい規則」を選択。
  2. **「ポート」**を選択して「次へ」。
  3. UDPを選択し、「特定のローカルポート」に5000-5500を入力して「次へ」。
  4. 「接続を許可する」を選択し「次へ」。
  5. プロファイルを選択(プライベートにチェックを入れる)し「次へ」。
  6. 名前を設定(例: GStreamer RTP UDP)して「完了」をクリック。

3.2.2. アプリケーション許可(必要に応じて)応じて)

GStreamerがファイアウォールでブロックされている場合、gst-launch-1.0の実行ファイルを許可します。

  1. 「Windows Defender ファイアウォールを介したアプリまたは機能を許可する」をクリック。
  2. 「別のアプリを許可する」をクリックし、GStreamerの実行ファイル(例: C:\msys64\mingw64\bin\gst-launch-1.0.exe)を指定して追加。
  3. 「プライベート」にチェックを入れて「OK」をクリック。

3.3. 仮想RTSPカメラの起動方法

以下のコマンド(例示)で起動する。

$ "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "0326_JP.mp4" --sout="#rtp{sdp=rtsp://0.0.0.0:8554/test}" --loop

コマンドの内容は、以下の通りである。

  • "C:\Program Files\VideoLAN\VLC\vlc.exe": vlc.exeを起動するコマンドをフルパスで指定。
  • vvv: デバッグ情報を詳細に出力する。問題発生時のトラブルシューティングに役立つ。
  • "0326_JP.mp4": 再生するmp4のファイル名(このファイル名は例示であるので、使用時のファイル名を使用する)
  • rtsp://0.0.0.0:8554/test: RTSPアドレス名。0.0.0.0は特殊なアドレスで、「すべてのネットワークインターフェース」を意味する。サーバーがリッスンする対象が、特定のIPアドレスではなく、すべての有効なインターフェースで接続を受け付ける設定である。8554は、ポート番号である。RTSPのデフォルトポート番号は554であるが、アプリケーションによって異なるポート番号が指定されることがある。この例では8554を使用している。/testは、ストリームのパス名を示す。サーバー内でストリームを識別するための名前である。
  • loop: ファイルの繰り返し再生を指定する。

なお、上記のコマンドを投入すると、以下の黒い画面が立ち上がり、コマンドは直ちにリターンする。矢印は再生している位置を示している。

このコマンドを停止するには、この画面を右上の『・』を押下する。

3.4. 仮想RTSPカメラのフレームレート/画像サイズの変更方法

VLCを使って仮想RTSPカメラを実現した際に、送信するフレームレートや画像サイズ(解像度)を変更することは可能である。以下の方法で設定を変更する。

$ "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "0326_JP.mp4" --sout="#transcode{vcodec=h264,fps=15,width=640,height=360}:rtp{sdp=rtsp://0.0.0.0:8554/test}" --loop

  • fps=15:
    • 送信するフレームレートを15fpsに設定する。
    • 必要に応じて、他の値(例: 3060)に変更可能。
  • width=640,height=360:
    • 解像度を640x360に設定しています。
    • 必要に応じて、他の解像度(例: 1920x1080640x480)に変更可能。

3.5. 複数の仮想RTSPカメラの起動方法

今回のケースでは、1台のPCで複数のカメラを実現するので、IPアドレスを固定として、異なるポート番号を使って、複数のカメラを実現することとする。

具体的には、以下のポート番号(8554, 8555, 8556)を変えて、それぞれコマンドを押下することで、同じmp4ファイルで3台のカメラが実現できる(もちろん、mp4ファイルを変えても良い)。

$ "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "0326_JP.mp4" --sout="#rtp{sdp=rtsp://0.0.0.0:8554/test}" --loop

$ "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "0326_JP.mp4" --sout="#rtp{sdp=rtsp://0.0.0.0:8555/test}" --loop

$ "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "0326_JP.mp4" --sout="#rtp{sdp=rtsp://0.0.0.0:8556/test}" --loop

4. 仮想RTSPカメラの起動確認方法

4.1. VLCを使った起動確認方法

簡易な確認方法として、画像受信もVLCを使用する方法を提示する。

受信側Windows10(192.168.0.25)のVLCを立ち上げて、以下の操作を行う。

ネットワークURLに、rtsp://192.168.0.3:8554/testと入力する。

これで映像が表示されれば成功である。

4.2. GStreamerを使った起動確認方法

以下のコマンドを投入して下さい。

$ gst-launch-1.0 -v rtspsrc location=rtsp://192.168.0.3:8554/test latency=0 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! glimagesink

(Windows10の場合は、autovideosinkでは動かないことが多い)

4.3. 注意点

仮想RTSPカメラはmp4ファイルを繰り返し再生するが、ファイル終了時にVLC(および殆どのクライアント)は、映像が停止したものと判断して再生を終了する。

現時点で、この対応方法は不明である。

以上

未分類

最近、学会発表用のカンファレンスペーパーや論文の生産装置として、心を無にして作業しています。

Recently, I’ve been working like a mindless production machine for conference papers and academic manuscripts.

――「何のために」なんて考えたら負けだ

If I start thinking “what’s the point,” I lose.

と思いながら、量産活動を続けています。

With that mindset, I continue my efforts in mass production.

-----

論文では、設定パラメータの一つに至るまで、その根拠を求められます。

In academic papers, we’re required to justify even a single parameter setting.

根拠としては、「論理的に無矛盾であることを説明しきる」か、「既往研究の論文結果を引用する」という2つの手段があります。

The two options are: “logically and internally consistent reasoning” or “citing established studies.”

後者は、「私は知らんけど、先人がちゃんと研究して、学会が認めた論文として公開されているんだから」という理由付けができるのです。

The latter lets you say, “I don’t know, but smarter people have studied it, and it’s been published and peer-reviewed.”

私たち研究員は「他人の実績に便乗する」と冗談めかして言いますが、

We researchers half-jokingly call this “riding on others’ achievements,”

この周到かつ粘着的なファクトチェックこそが、“論文”というか“学問”を支える骨格になっているのは事実です。

But in reality, this meticulous and obsessive fact-checking is the very backbone of academic integrity.

こうして、アカデミズムという権威が支えられているのだなぁ、と考えると、

When I think about how this is what sustains the authority of academia,

アカデミズムとは、フェイクニュースの"究極の対極"に位置するものなのだと、つくづく実感します。

I’m reminded that academia truly stands at the extreme opposite of fake news.

-----

比して、「日本の自動車の耐久試験では、ボーリングの球を6メートルの高さから落として、ボンネットに傷が付かないかをチェックする」などという、

In contrast, there are claims like “In Japan’s car durability tests, they drop a bowling ball from 6 meters to see if the hood gets scratched.”

意味不明なことを言っていた某国の大統領は、

Spouted by some foreign president who lives in a world with no fact-checking.

ファクトチェックとは無縁の世界で生きているようで、心底うらやましくもあります。

Honestly, I’m a little jealous of how unburdened he seems by reality.

もう、あの大統領は「そういう奴」でいいです(諦めています)。

At this point, I’m OK with accepting “that’s just the kind of guy he is” (I’ve given up).

ですが、「その大統領を管理すべき周囲の側近たちは、一体何をしているんだ」とは思います。

But I do wonder, “What on earth are his aides and staff even doing?”

大統領は選挙で選ばれた存在ですから、

A president is elected, after all,

インテリジェンスとか、モラルとか、常識とか、そういうものは原則として必要とされない、というのも納得できます。

So I can accept that intelligence, morality, or common sense aren’t strictly required.

しかし、行政機関には、大統領のポリシーを踏まえつつ、それを制御・調整する義務があります。

However, administrative agencies must work within the president’s policies while still maintaining their autonomy.

そうしたチェック機能を働かせられない彼らこそが、「職務怠慢」そのものじゃないんですかね。

Aren’t those agencies the real culprits of “dereliction of duty” for failing to enforce those checks?

――という、当たり前の理屈が通らないところに、あの大統領制の恐ろしさがあるのです。

And it’s precisely this breakdown of basic logic that makes that presidential system so terrifying.

------

比して、我が国の首相が、日替わり(とは言わないまでも月替わり)定食くらいの頻度で変わる、

By contrast, our country’s prime ministers change about as often as a seasonal lunch special, maybe not daily, but monthly.

『為政者簡易変更システム』というのは、本当に素晴らしい仕組みだと思っています。

And I genuinely think this “easy political leadership replacement system” is a brilliant innovation.

(1)政権与党(自民党)って、ずっと変わらないんだなぁ (2)『金』はともかく、倫理的に問題があるセックスしている時間があるなら、仕事しろ

未分類

Let me see... It's "Scent of a woman" (セント・オブ・ウーマン(邦名「夢の香り」)

私の好きなコンテンツが家族と被る ―― これは、結構、幸せなことだなぁ、と実感しています。

昨日、Amazon Primeで、次女も「セント・オブ・ウーマン 夢の香り」の視聴を終えたようです。

これで、江端家全員、視聴を完了しました。

なんか、肩の荷が下りた気がします。

―― 伝えることは伝えきった

と。

『私の人生、随分安いな』と思わなくもありませんが。

Amazon Primeには都度お金を払っていますが、まあ、この映画に関してだけは「制限なし」で、いいんです。

 

2025,江端さんの忘備録

NHKスペシャル「調査報道 新世紀 File4 オンラインカジノ 底知れぬ闇」(2024年6月29日の再放送)を見ました。

I watched the NHK Special "Investigative Report: New Century File 4 - The Bottomless Darkness of Online Casinos" (rebroadcast on June 29, 2024).

日本国内で急増するオンラインカジノの実態とその背後に潜む問題を深く掘り下げたドキュメンタリーでした。

It was a documentary that delved deeply into the realities of rapidly growing online casinos in Japan, as well as the underlying problems.

この番組は、オンラインカジノの仕組みや運営実態、利用者の増加による社会的影響などを明らかにしていました。大変勉強になりました。

The program revealed the mechanisms, operational realities, and social impacts of online casinos as their users increased. It was highly informative.

元社員の証言から、『ゲームの結果が操作されている可能性』や、『利用者を意図的に勝たせて依存させる手法』が存在することが示唆されています。

According to testimony from former employees, it was suggested that game outcomes may be manipulated, and that there are methods to let users win to foster addiction intentionally.

『ほら、やっぱり、自分の手札や配牌は、システム運用側に、全部バレてるんじゃんか』と、思いました。

I thought, "See? I knew it. Our cards or tiles are completely exposed to the system operators."

私が、こちらで書いたような「信頼性」やら「公正性の証明」やらは、やはり機能していないということが分かり、ウラが取れて逆に安心しました。

It confirmed what I had previously written—that concepts like "reliability" and "proof of fairness" are not functioning. Ironically, that reassurance gave me a strange sense of relief.

オンラインカジノは、丁半リストを「丁→半→半→丁→半→半→丁→丁→半→半→丁→...」と決めておいてから、賭場を開くわけですよ。

私は、心理学者を実装パートナーとして『オンラインカジノシステムが、ギャンブル依存症患者を生成するシステム』として作られている、という話が衝撃的でした。

I was shocked by the idea that psychologists were involved as implementation partners to design a system that essentially manufactures gambling addicts.

私、これまで色々なITシステムを作ってきましたが、

I've developed a variety of IT systems in my career,

―― 人間を、意図的に病気にさせるシステム

- but never one designed to make people sick intentionally.

というのは、一度も作ったことなかったなあ、と、ちょっと感慨に耽っています。

That thought gave me pause, and I found myself in a moment of reflection.

-----

ただ、私であっても、業務として命令されれば「依存性のあるUI設計」でも「中毒性のあるUX」でも、何でも作ります。

That said, if ordered to do so as part of my job, I’d still create a "compulsively engaging UI" or an "addictive UX," whatever is required.

まあ、多分、こういう言い方はされずに、「ユーザーの滞在時間を最大化するUI」とか「自然に再訪したくなる体験設計のUX」という内容で依頼をされると思いますが。

Although it's unlikely to be phrased that way, it will probably be something like "UI that maximizes user session time" or "UX designed to encourage natural repeat visits."

少なくとも、私に「倫理観」とか「道徳観」を説いても無駄です。

At the very least, preaching ethics or morality to me is pointless.

私、ただのサラリーマンですから。

Because I’m just a corporate employee, after all.

2025,江端さんの忘備録

『適者生存』とは、「生存できる者は変化に対応できる者」ではなく「『たまたま変化に対応できたものが、生き残る』という自然現象」が正しい内容です(ウラは取りました)。

"Survival of the fittest" does not mean "those who can adapt survive," but rather "those who happened to adapt to change survive" -- that’s the correct interpretation (and yes, I verified it).

多くの人は「適者生存=強いもの・賢いものが生き残る」と解釈しますが、それは間違いです。

Many people interpret "survival of the fittest" as "the strong and smart survive," but that’s a misconception.

「環境の変化に偶然“適応できてしまった”者が結果的に生き残る」という自然現象であり、"強い"とか、"賢い"とか、"勤勉"とか、"コミュ力"などとは、一切関係がありません。

It's a natural phenomenon where those who "accidentally" adapt to environmental changes tend to survive — it has nothing to do with being "strong," "smart," "hardworking," or "socially skilled."

ましてや、"変化する努力"などは、全く的外れな話なのです。

And the effort to change is entirely beside the point.

だから私は、「適者生存」を、自己啓発やビジネスの文脈で使う人間を信用していません。

That’s why I don’t trust people who use "survival of the fittest" in self-help or business contexts.

彼らは、運の良さを実力と錯覚し、自然選択を「努力と才能の成果」にすり替えているからです。

Because they mistake good luck for ability, and twist natural selection into a tale of "hard work and talent."

『適者生存』とは「たまたま運が良かった」ということだけです。

"Survival of the fittest" simply means that someone happened to be lucky.

-----

『適者生存』ではないのでしょうが、のらりくらりと、上手く世の中を渡っている奴っていますよね。

It might not be about "survival of the fittest," but you know those people who just sort of drift through life and somehow make it work?

正直腹が立ちますが、このように腹を立てている私(江端)が、『上手く世の中を渡っている奴』のようにも見えることもあるようです。

Honestly, it annoys me -- but, I (Ebata), the one getting annoyed, sometimes look like one of those people who’s gliding through life just fine.

完全な被害者 ―― 多分、そんな人間は存在しない。

A total victim -- probably no such person exists.

私たちは被害者になった時にだけ、自分が被害者であることを主張します。

We only claim to be victims when we are one.

『自分だけが被害者であるように振る舞うこの世界』に、私は辟易(へきえき)としています。

I’m fed up with this world where everyone acts like they’re the only victim.

私なら、『今でも報復を諦めていない』くらいのことは言うと思う。

-----

つまりこの世界、

In other words, in this world

「運よく生き残ったヤツ」が勝者で、

The one who survives by luck is the winner.

「ちょっと運が悪かったヤツ」が敗者で、

The one with slightly worse luck is the loser,

「自分の不運を語り始めたヤツ」が面倒くさい人扱いされるようにできている。

And the one who starts talking about their bad luck gets labeled a nuisance.

で、その全部を経験した私が言いますが、世の中、フェアじゃないけど、割と均等にアンフェアです。

And having experienced all of the above, I can say -- this world isn't fair, but it’s unfair in a surprisingly even-handed way.