Skip to content

moveit_visual_tools::MoveItVisualTools::publishTrajectoryPath unchecked read of possibly null pointer #94

@werner291

Description

@werner291

Hello,

see the line: https://github.com/ros-planning/moveit_visual_tools/blob/c166f8ee6412023b4183fc091abe6acbcdba2448/src/moveit_visual_tools.cpp#L1254

That line can segfault, because the robot_model_ may be a null pointer. This is possibly due to me using MoveIt without a source of "current" robot state information, I just want to plan hypothetical paths.

Looks like that method is missing a loadSharedRobotState();.

Calling that method from user code beforehand makes causes the segfault to disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions