Skip to content

Commit

Permalink
fix passing clock.now to stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
anasarrak committed Jun 13, 2019
1 parent c8fb7c1 commit 082b80f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ void constraint_samplers::visualizeDistribution(const ConstraintSamplerPtr& samp
if (!lm)
return;
robot_state::RobotState ks(reference_state);
rclcpp::Time stamp = rclcpp::Clock().now();
std_msgs::msg::ColorRGBA color;
color.r = 1.0f;
color.g = 0.0f;
Expand All @@ -107,7 +106,7 @@ void constraint_samplers::visualizeDistribution(const ConstraintSamplerPtr& samp
continue;
const Eigen::Vector3d& pos = ks.getGlobalLinkTransform(lm).translation();
visualization_msgs::msg::Marker mk;
mk.header.stamp = stamp;
mk.header.stamp = rclcpp::Clock().now();
mk.header.frame_id = sampler->getJointModelGroup()->getParentModel().getModelFrame();
mk.ns = "constraint_samples";
mk.id = i;
Expand Down

0 comments on commit 082b80f

Please sign in to comment.