Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Integers should be accepted as floats

オープン
#172 コメント 1 件 リアクション 5 件 担当者 0 名 GitHub で見る

@EsipovPA がすでに取り組んでいます。

2024年9月10日 から。

  • #216 @EsipovPA による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
api, backend

調査の方向性

まず、floatフィールドを含むメッセージを使い、rclpyクライアントライブラリ経由で代入を再現します。生成されたPythonメッセージフィールドの検証を調べ、整数値が拒否される箇所を特定します。報告されたAssertionErrorなしで整数値のfloatとしての代入が受け入れられ、この動作に対するリグレッションカバレッジが追加されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

help wanted

Bug report

Required Info:

  • Operating System: Ubuntu 22.04
  • Installation type: binary
  • Version or commit hash: 0.15.0
  • DDS implementation: cyclonedds
  • Client library (if applicable): rclpy
Steps to reproduce issue
  1. Define a message with a float field
  2. Try to assign an integer to the field.
Expected behavior

The integer should be automatically casted to a float.

Actual behavior

You manually have to cast the integer to float, otherwise you get the error message AssertionError: The 'x' field must be of type 'float.

主要言語
EmberScript
スター
26
フォーク
68
平均マージ
1日 9時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ros2/rosidl_python のほかの issue

ros2/rosidl_python の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。