Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.85.0 (2026-04-10)

- Add triggerTiming, currentTriggerIndex, and numTotalTriggers to TriggerDetectionCaptureInfo.

## 0.84.0 (2026-03-31)

- (BREAKING) Remove `lastInsideContainerStampMS` from `LocationTrackingInfo` to migrate it to robotbridge
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE )
# Define here the needed parameters
# make sure to change the version in docs/Makefile
set (MUJINCLIENT_VERSION_MAJOR 0)
set (MUJINCLIENT_VERSION_MINOR 84)
set (MUJINCLIENT_VERSION_MINOR 85)
set (MUJINCLIENT_VERSION_PATCH 0)
set (MUJINCLIENT_VERSION ${MUJINCLIENT_VERSION_MAJOR}.${MUJINCLIENT_VERSION_MINOR}.${MUJINCLIENT_VERSION_PATCH})
set (MUJINCLIENT_SOVERSION ${MUJINCLIENT_VERSION_MAJOR}.${MUJINCLIENT_VERSION_MINOR})
Expand Down
5 changes: 4 additions & 1 deletion include/mujincontrollerclient/binpickingtask.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,12 @@ class MUJINCLIENT_API BinPickingTaskResource : public TaskResource
struct TriggerDetectionCaptureInfo {
TriggerDetectionCaptureInfo();
double timestamp = 0; ///< timestamp this request was sent. If non-zero, then valid.
std::string triggerType; ///< The type of trigger this is. For now can be: "phase1Detection", "phase2Detection"
std::string triggerType; ///< The type of this. Valid values are: "detection", "runDetectionOnce", "phase1Detection", "phase2Detection", "pointCloudObstacle", "executionVerification"
std::string triggerTiming; ///< The planning trigger timing. Indicates the timing (within a binpicking cycle) of this trigger.
std::string locationName; ///< The name of the location for this detection trigger.
std::string targetUpdateNamePrefix; ///< if not empty, use this new targetUpdateNamePrefix for the triggering, otherwise do not change the original targetUpdateNamePrefix
int currentTriggerIndex = 0; ///< The index of the current trigger for this detection task
int numTotalTriggers = 1; ///< The number of total triggers expected for this detection task
} triggerDetectionCaptureInfo;

std::vector<mujin::PickPlaceHistoryItem> pickPlaceHistoryItems; ///< history of pick/place actions that occurred in planning. Events should be sorted in the order they happen, ie event [0] happens before event [1], meaning event[0].eventTimeStampUS is before event[1].eventTimeStampUS
Expand Down
3 changes: 3 additions & 0 deletions src/binpickingtask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,11 @@ void BinPickingTaskResource::ResultGetBinpickingState::Parse(const rapidjson::Va

triggerDetectionCaptureInfo.timestamp = GetJsonValueByPath<double>(v, "/triggerDetectionCaptureInfo/timestamp", 0);
triggerDetectionCaptureInfo.triggerType = GetJsonValueByPath<std::string>(v, "/triggerDetectionCaptureInfo/triggerType", "");
triggerDetectionCaptureInfo.triggerTiming = GetJsonValueByPath<std::string>(v, "/triggerDetectionCaptureInfo/triggerTiming", "");
triggerDetectionCaptureInfo.locationName = GetJsonValueByPath<std::string>(v, "/triggerDetectionCaptureInfo/locationName", "");
triggerDetectionCaptureInfo.targetUpdateNamePrefix = GetJsonValueByPath<std::string>(v, "/triggerDetectionCaptureInfo/targetUpdateNamePrefix", "");
triggerDetectionCaptureInfo.currentTriggerIndex = GetJsonValueByPath<int>(v, "/triggerDetectionCaptureInfo/currentTriggerIndex", 0);
triggerDetectionCaptureInfo.numTotalTriggers = GetJsonValueByPath<int>(v, "/triggerDetectionCaptureInfo/numTotalTriggers", 1);

activeLocationTrackingInfos.clear();
if( v.HasMember("activeLocationTrackingInfos") && v["activeLocationTrackingInfos"].IsArray()) {
Expand Down