From a0b80b81b75edf511278f6a5c565c5b7046c0c85 Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Wed, 16 Oct 2024 09:49:12 -0700 Subject: [PATCH] Upgrade to Drake 1.34.0 --- drake_ros/drake.bzl | 6 +++--- drake_ros/viz/scene_markers_system.cc | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drake_ros/drake.bzl b/drake_ros/drake.bzl index 8f78cf54..482abee2 100644 --- a/drake_ros/drake.bzl +++ b/drake_ros/drake.bzl @@ -1,5 +1,5 @@ DRAKE_SUGGESTED_VERSION = struct( - url = "https://github.com/RobotLocomotion/drake/archive/refs/tags/v1.32.0.tar.gz", # noqa - sha256 = "8d8211a1654956891cf43f698d01a3742f3aa2237d03635cb03e6cf3e8631b38", # noqa, - strip_prefix = "drake-1.32.0", + url = "https://github.com/RobotLocomotion/drake/archive/refs/tags/v1.34.0.tar.gz", # noqa + sha256 = "0b57df077192a9480b799320c1edee3cc524d5e9b97aaa6861de09681542175f", # noqa, + strip_prefix = "drake-1.34.0", ) diff --git a/drake_ros/viz/scene_markers_system.cc b/drake_ros/viz/scene_markers_system.cc index 5248a538..c3a03cda 100644 --- a/drake_ros/viz/scene_markers_system.cc +++ b/drake_ros/viz/scene_markers_system.cc @@ -213,7 +213,8 @@ class SceneGeometryToMarkers : public drake::geometry::ShapeReifier { marker.scale.y = convex.scale(); marker.scale.z = convex.scale(); // Assume it is an absolute path and turn it into a file URL. - marker.mesh_resource = "file://" + convex.filename(); + DRAKE_THROW_UNLESS(convex.source().is_path()); + marker.mesh_resource = "file://" + convex.source().path().string(); marker.pose = RigidTransformToRosPose(X_FG_); } @@ -226,7 +227,8 @@ class SceneGeometryToMarkers : public drake::geometry::ShapeReifier { marker.scale.y = mesh.scale(); marker.scale.z = mesh.scale(); // Assume it is an absolute path and turn it into a file URL. - marker.mesh_resource = "file://" + mesh.filename(); + DRAKE_THROW_UNLESS(mesh.source().is_path()); + marker.mesh_resource = "file://" + mesh.source().path().string(); marker.pose = RigidTransformToRosPose(X_FG_); }