Skip to content

Commit 44ed722

Browse files
author
Taiju Yamada
committed
Merge origin/master into setDefaultGeometryValue
2 parents 0513504 + 0fba876 commit 44ed722

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.71.0 (2024-03-26)
4+
5+
- Add objectType field in RegisterMinViableRegionInfo
6+
37
## 0.70.2 (2023-11-21)
48

59
- Fix memory leak by incorrect usage of `curl_formfree`.

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE )
1818
# Define here the needed parameters
1919
# make sure to change the version in docs/Makefile
2020
set (MUJINCLIENT_VERSION_MAJOR 0)
21-
set (MUJINCLIENT_VERSION_MINOR 70)
22-
set (MUJINCLIENT_VERSION_PATCH 3)
21+
set (MUJINCLIENT_VERSION_MINOR 71)
22+
set (MUJINCLIENT_VERSION_PATCH 0)
2323
set (MUJINCLIENT_VERSION ${MUJINCLIENT_VERSION_MAJOR}.${MUJINCLIENT_VERSION_MINOR}.${MUJINCLIENT_VERSION_PATCH})
2424
set (MUJINCLIENT_SOVERSION ${MUJINCLIENT_VERSION_MAJOR}.${MUJINCLIENT_VERSION_MINOR})
2525
set (CLIENT_SOVERSION ${MUJINCLIENT_VERSION_MAJOR}.${MUJINCLIENT_VERSION_MINOR})

include/mujincontrollerclient/binpickingtask.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class MUJINCLIENT_API BinPickingTaskResource : public TaskResource
217217
std::array<double, 3> translation; ///< Translation of the 2D MVR plane (height = 0)
218218
std::array<double, 4> quaternion; ///< Rotation of the 2D MVR plane (height = 0)
219219
double objectWeight; ///< If non-zero, use this weight fo registration. unit is kg. zero means unknown.
220+
std::string objectType; ///< The type of the object
220221
uint64_t sensorTimeStampMS; ///< Same as DetectedObject's timestamp sent to planning
221222
double robotDepartStopTimestamp; ///< Force capture after robot stops
222223
std::array<double, 3> liftedWorldOffset; ///< [dx, dy, dz], mm in world frame

src/binpickingtask.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ BinPickingTaskResource::ResultGetBinpickingState::RegisterMinViableRegionInfo& B
8383
translation = rhs.translation;
8484
quaternion = rhs.quaternion;
8585
objectWeight = rhs.objectWeight;
86+
objectType = rhs.objectType;
8687
sensorTimeStampMS = rhs.sensorTimeStampMS;
8788
robotDepartStopTimestamp = rhs.robotDepartStopTimestamp;
8889
liftedWorldOffset = rhs.liftedWorldOffset;
@@ -124,6 +125,7 @@ void BinPickingTaskResource::ResultGetBinpickingState::RegisterMinViableRegionIn
124125
SetJsonValueByKey(rInfo, "translation", translation, alloc);
125126
SetJsonValueByKey(rInfo, "quaternion", quaternion, alloc);
126127
SetJsonValueByKey(rInfo, "objectWeight", objectWeight, alloc);
128+
SetJsonValueByKey(rInfo, "objectType", objectType, alloc);
127129
SetJsonValueByKey(rInfo, "sensorTimeStampMS", sensorTimeStampMS, alloc);
128130
SetJsonValueByKey(rInfo, "robotDepartStopTimestamp", robotDepartStopTimestamp, alloc);
129131

@@ -171,6 +173,7 @@ void BinPickingTaskResource::ResultGetBinpickingState::RegisterMinViableRegionIn
171173
LoadJsonValueByKey(rInfo, "translation", translation);
172174
LoadJsonValueByKey(rInfo, "quaternion", quaternion);
173175
objectWeight = GetJsonValueByKey<double>(rInfo, "objectWeight", 0);
176+
LoadJsonValueByKey(rInfo, "objectType", objectType);
174177
sensorTimeStampMS = GetJsonValueByKey<uint64_t>(rInfo, "sensorTimeStampMS", 0);
175178
robotDepartStopTimestamp = GetJsonValueByKey<double>(rInfo, "robotDepartStopTimestamp", 0);
176179

0 commit comments

Comments
 (0)