Skip to content

Commit

Permalink
✨ Add chat reading feature
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Sep 18, 2024
1 parent eb0fb1c commit 6e323d9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
24 changes: 13 additions & 11 deletions craftground/craftground/proto/observation_space_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions craftground/craftground/proto_proto/observation_space.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ message EntitiesWithinDistance {
repeated EntityInfo entities = 1;
}

message ChatMessageInfo {
int64 added_time = 1; // TODO: always 0
string message = 2;
string indicator = 3; // TODO;; always empty
}

message ObservationSpaceMessage {
bytes image = 1;
double x = 2;
Expand Down Expand Up @@ -84,4 +90,5 @@ message ObservationSpaceMessage {
repeated BlockInfo surrounding_blocks = 25; // center, (-1, -1, -1), (0, -1, -1), ...; xyz order: len = 27
bool eye_in_block = 26;
bool suffocating = 27;
repeated ChatMessageInfo chat_messages = 28;
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
packages = find_packages()
setup(
name="craftground",
version="2.4.59",
version="2.4.60",
packages=packages,
install_requires=["gymnasium", "Pillow", "numpy", "protobuf", "typing_extensions"],
author="yhs0602",
Expand Down

0 comments on commit 6e323d9

Please sign in to comment.