Skip to content

Fix Master Status#2

Merged
ahcorde merged 5 commits intomasterfrom
master-fix
Feb 20, 2019
Merged

Fix Master Status#2
ahcorde merged 5 commits intomasterfrom
master-fix

Conversation

@anasarrak
Copy link
Copy Markdown

No description provided.

double getAverageSegmentDuration() const;

void getRobotTrajectoryMsg(moveit_msgs::msg::RobotTrajectory& trajectory) const;
void getRobotTrajectoryMsg(moveit_msgs::msg::RobotTrajectory& trajectory, rclcpp::Clock clock_ros_) const;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you are creating a attribute clock_ros_ you don't need to pass it as an argument

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was having this error:

error: passing ‘const rclcpp::Clock’ as ‘this’ argument discards qualifiers [-fpermissive]
   builtin_interfaces::msg::Time stamp = clock_ros_.now();

@ahcorde ahcorde merged commit 1401a4e into master Feb 20, 2019
@ahcorde ahcorde deleted the master-fix branch February 20, 2019 15:38
ahcorde pushed a commit that referenced this pull request Feb 22, 2019
Consolidate logging within moveit_core by creating a dedicated
submodule that integrates prior ROS macros
vmayoral added a commit that referenced this pull request Jun 12, 2019
Using ASan the following memory leak was detected:
    #0 0x7f9a7e0b7458 in operator new(unsigned long)
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0458)
    #1 0x7f9a7d3480fd in shapes::constructShapeFromText(std::istream&)
/opt/ros2_moveit2_ws/src/geometric_shapes/src/shape_operations.cpp:505
    #2 0x7f9a7dc7d561 in planning_scene::PlanningScene::
loadGeometryFromStream(std::istream&, Eigen::Transform<double, 3, 1, 0>
const&) /opt/ros2_moveit2_ws/src/moveit2/moveit_core/planning_scene/
src/planning_scene.cpp:1077
    #3 0x7f9a7dc7c336 in planning_scene::PlanningScene::
loadGeometryFromStream(std::istream&) /opt/ros2_moveit2_ws/src/
moveit2/moveit_core/planning_scene/src/planning_scene.cpp:1043
    ...

The changes proposed here release the shapes::Shape instance
allocated and prevent the memory leak.
ahcorde pushed a commit that referenced this pull request Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants