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

Non-inclusive gender options in custom interfaces example #3533

Closed
playertr opened this issue May 5, 2023 · 4 comments · Fixed by #3558
Closed

Non-inclusive gender options in custom interfaces example #3533

playertr opened this issue May 5, 2023 · 4 comments · Fixed by #3558
Assignees
Labels
help wanted Extra attention is needed

Comments

@playertr
Copy link
Contributor

playertr commented May 5, 2023

The custom interfaces example in the Beginner Client Libraries tutorial represents gender as a bool, spelled out to be either MALE or FEMALE. ROS users who may have different gender identities may feel excluded by this choice of representation.

bool FEMALE=true
bool MALE=false

string first_name
string last_name
bool gender
uint8 age
string address

I suggest moving to a named-constant enum with an "other" option or removing the gender field entirely. This change is in keeping with the ROS Community Code of Conduct's preference for inclusive language.

I can make a PR after getting folks' input on this change.

@cdhabecker
Copy link

I concur. Just remove it.
Also, no one stores age -- always store date of birth.
Also, bool is a poor use case for constants.

Address is complex. How about a basic contact with a phone number? Just a naive, single-number implementation with a type to demonstrate constants.

uint8 PHONE_TYPE_HOME=0
uint8 PHONE_TYPE_WORK=1
uint8 PHONE_TYPE_MOBILE=2

string first_name
string last_name
int32 date_of_birth_seconds
string phone_number
uint8 phone_type

@fujitatomoya
Copy link
Collaborator

I am okay to change that, @playertr can you make a PR targets to rolling branch?

@fujitatomoya fujitatomoya self-assigned this May 8, 2023
@fujitatomoya fujitatomoya added the help wanted Extra attention is needed label May 8, 2023
@playertr
Copy link
Contributor Author

playertr commented May 8, 2023

Okay, I'll make the PR.

@playertr
Copy link
Contributor Author

playertr commented May 8, 2023

Okay! I submitted a PR (and I think I followed GPG signing and commit-message conventions -- couldn't find one).

#3558

I also deleted the age / date of birth field because IMO the best representation for this field would be a std_msgs/time message, and creating one is outside the scope of this tutorial.

clalancette pushed a commit that referenced this issue May 9, 2023
* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
mergify bot pushed a commit that referenced this issue May 9, 2023
* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 5f528a9)
mergify bot pushed a commit that referenced this issue May 9, 2023
* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 5f528a9)
mergify bot pushed a commit that referenced this issue May 9, 2023
* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 5f528a9)
clalancette pushed a commit that referenced this issue May 9, 2023
…3575)

* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 5f528a9)

Co-authored-by: Tim Player <timrplayer@gmail.com>
clalancette added a commit that referenced this issue May 9, 2023
…3576)

* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 5f528a9)

Co-authored-by: Tim Player <timrplayer@gmail.com>
clalancette added a commit that referenced this issue May 9, 2023
…3577)

* Replace boolean gender field in interface tutorial (#3533)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 5f528a9)

Co-authored-by: Tim Player <timrplayer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants