Skip to content

Commit

Permalink
Merge branch 'dartsim:release-6.13' into mjcarroll/garden_bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcarroll committed Feb 15, 2024
2 parents 8c166df + de55276 commit 52c5e84
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/api_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Cron syntax: [minute hour day_of_the_month month day_of_the_week]
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Cron syntax: [minute hour day_of_the_month month day_of_the_week]
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Cron syntax: [minute hour day_of_the_month month day_of_the_week]
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Cron syntax: [minute hour day_of_the_month month day_of_the_week]
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
## DART 6

### [DART 6.13.1 (2024-01-04)](https://github.com/dartsim/dart/milestone/74?closed=1)

* Tested Platforms

* Ubuntu Focal on amd64 / GCC 9.4 / amd64
* Ubuntu Jammy on amd64 / GCC 11.3 / amd64
* macOS 12 (Monterey) / Clang 14 / amd64
* Windows / MSVC 19.37 / amd64

* Build

* Fixed build with urdfdom 4.0.0: [#1779](https://github.com/dartsim/dart/pull/1779)
* Fixed invalid array access in moving skeleton subtree: [#1778](https://github.com/dartsim/dart/pull/1778)

* Dynamics

* Fixed joint not recovering after reaching position limits in servo mode: [#1774](https://github.com/dartsim/dart/pull/1774)

### [DART 6.13.0 (2022-12-31)](https://github.com/dartsim/dart/milestone/69?closed=1)

* Supported Platforms
Expand Down
4 changes: 2 additions & 2 deletions dart/constraint/JointConstraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void JointConstraint::update()
// the position error.

const double C1 = mErrorAllowance * A1;
double bouncing_vel = -std::max(B1, C1) / timeStep;
double bouncing_vel = -std::min(B1, C1) / timeStep;
assert(bouncing_vel >= 0);
bouncing_vel = std::min(bouncing_vel, mMaxErrorReductionVelocity);

Expand Down Expand Up @@ -280,7 +280,7 @@ void JointConstraint::update()
// the position error.

const double C2 = mErrorAllowance * A2;
double bouncing_vel = -std::min(B2, C2) / timeStep;
double bouncing_vel = -std::max(B2, C2) / timeStep;
assert(bouncing_vel <= 0);
bouncing_vel = std::max(bouncing_vel, -mMaxErrorReductionVelocity);

Expand Down
5 changes: 4 additions & 1 deletion dart/dynamics/BodyNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ ConstSkeletonPtr SkeletonRefCountingBase::getSkeleton() const
/// SET_FLAGS : A version of SKEL_SET_FLAGS that assumes a SkeletonPtr named
/// 'skel' has already been locked
#define SET_FLAGS(X) \
skel->mTreeCache[mTreeIndex].mDirty.X = true; \
if (mTreeIndex != INVALID_INDEX) \
{ \
skel->mTreeCache[mTreeIndex].mDirty.X = true; \
} \
skel->mSkelCache.mDirty.X = true;

/// CHECK_FLAG : Check if the dirty flag X for the tree of this BodyNode is
Expand Down
7 changes: 7 additions & 0 deletions dart/dynamics/Skeleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2357,6 +2357,13 @@ void Skeleton::registerNode(Node* _newNode)
//==============================================================================
void Skeleton::destructOldTree(std::size_t tree)
{
// Invalidate the tree indices of every BodyNode that is being removed
DataCache& treeToDestroy = mTreeCache[tree];
for (auto& bodyNode : treeToDestroy.mBodyNodes)
{
bodyNode->mTreeIndex = INVALID_INDEX;
}

mTreeCache.erase(mTreeCache.begin() + tree);
mTreeNodeMaps.erase(mTreeNodeMaps.begin() + tree);

Expand Down
13 changes: 13 additions & 0 deletions dart/gui/osg/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ namespace dart {
namespace gui {
namespace osg {

std::string toString(CameraMode mode)
{
switch (mode)
{
case CameraMode::RGBA:
return "RGBA";
case CameraMode::DEPTH:
return "DEPTH";
default:
return "UNKNOWN";
}
}

class SaveScreen : public ::osg::Camera::DrawCallback
{
public:
Expand Down
4 changes: 3 additions & 1 deletion dart/gui/osg/Viewer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ enum class CameraMode

/// To render the depth buffer
///
/// \warning The DEPTH mode currently not compatible with the ImGui wigets.
/// \warning The DEPTH mode currently not compatible with the ImGui widgets.
DEPTH,
};

[[nodiscard]] std::string toString(CameraMode mode);

DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_BEGIN
class ViewerAttachment : public virtual ::osg::Group
{
Expand Down
3 changes: 1 addition & 2 deletions dart/gui/osg/detail/CameraModeCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ void CameraModeCallback::setCameraMode(CameraMode mode)
if (mode != CameraMode::RGBA && mode != CameraMode::DEPTH)
{
DART_WARN(
"Unsupported camera mode '{}'. Use RGBA or DEPTH.",
static_cast<int>(mode));
"Unsupported camera mode '{}'. Use RGBA or DEPTH.", toString(mode));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dart/utils/urdf/urdf_world_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ std::shared_ptr<World> parseWorldURDF(
auto* origin = entity_xml->FirstChildElement("origin");
if (origin)
{
if (!parsePose(entity.origin, origin))
if (!urdf_parsing::parsePose(entity.origin, origin))
{
dtwarn << "[ERROR] Missing origin tag for '"
<< entity.model->getName() << "'\n";
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
a Catkin workspace. Catkin is not required to build DART. For more
information, see: http://ros.org/reps/rep-0136.html -->
<name>dartsim</name>
<version>6.13.0</version>
<version>6.13.1</version>
<description>
DART (Dynamic Animation and Robotics Toolkit) is a collaborative,
cross-platform, open source library created by the Georgia Tech Graphics
Expand Down

0 comments on commit 52c5e84

Please sign in to comment.