Skip to content

Debug Messages

minecraft-ros2 provides debug messages.

By directly publishing data from Minecraft, these messages allow for collecting ground truth data along with sensor data, which is useful for both data collection and troubleshooting.

INFO

There are disabled by default. To enable them, set enableDebugDataStreaming to true in the run/config/minecraft_ros2-common.toml file.

Player Status

Retrieves the player's current status information.

ROS 2 Interface

TypeTopic Name
minecraft_msgs/PlayerStatus/player_status

Message Details

minecraft_msgs/PlayerStatus

Field NameTypeDescription
namestringPlayer's name
dimensionstringPlayer's current dimension
food_leveluint8Player's hunger status
scoreuint32Player's score
sleep_timeruint8Player's sleep time
xp_leveluint32Player's experience level
xp_progressfloat32Player's experience progress (%)
total_xpuint32Player's total experience
healthfloat32Player's current health
max_healthfloat32Player's maximum health
airuint16Player's current air supply
max_airuint16Player's maximum air supply
active_effectsstring[]List of effects currently applied to the player
inventory_itemsminecraft_msgs/Item[]List of items in the player's inventory
main_hand_itemminecraft_msgs/ItemItem held in the player's main hand
off_hand_itemminecraft_msgs/ItemItem held in the player's off hand

Relative Distance to Mobs

Retrieves the relative distance between the player and mobs.

ROS 2 Interface

TypeTopic Name
minecraft_msgs/LivingEntityArray/player/nearby_living_entities

Message Details

minecraft_msgs/LivingEntityArray

Field NameTypeDescription
headerstd_msgs/HeaderMessage's header information
entitiesminecraft_msgs/LivingEntity[]List of nearby mobs

minecraft_msgs/LivingEntity

Field NameTypeDescription
description_idstringMob's description ID
namestringMob's name
posegeometry_msgs/PoseMob's position and orientation
iduint32Mob's unique ID
healthfloat32Mob's current health
max_healthfloat32Mob's maximum health
hit_boxgeometry_msgs/Vector3Size of the mob's hit box
categoryminecraft_msgs/MobCategoryMob's category

minecraft_msgs/MobCategory

Field NameTypeDescription
mob_categoryuint8Mob category

The following categories are defined:

enum ValueValueDescription
MONSTER0Monster (Hostile Mob)
CREATURE1Creature (Usually Friendly Mob)
AMBIENT2Ambient Mob (Produces Environmental Sounds)
AXOLOTLS3Axolotls
UNDERGROUND_WATER_CREATURE4Underground Water Creature
WATER_CREATURE5Water Creature
WATER_AMBIENT6Water Ambient (Produces Environmental Sounds)
MISC7Miscellaneous Mob