But it gives rise to crash the some part of moveit2 while running demo. It is indicated that in this page, at method throws out of range error for this situations:
[std::out_of_range](https://en.cppreference.com/w/cpp/error/out_of_range) if the container does not have:
1,2) an element with the specified key.
3,4) the specified element, that is, if find(x) == end() is true.
Follow the get started documentation and then launch this file with this configuration after creating a new package named hello_moveit. Don't forget to build the relevant package again with this command.
Description
Hello,
I have found a bug in https://github.com/moveit/moveit2/blob/6454a073d27c4eeb23d4f748364b22f5b072cf92/moveit_ros/perception/mesh_filter/src/gl_renderer.cpp#L390 , which the
at method of std::map
is misused.The following line is used in moveit2
But it gives rise to crash the some part of moveit2 while running demo. It is indicated that in this page,
at
method throwsout of range error
for this situations:But it is missed in this lines.
https://github.com/moveit/moveit2/blob/6454a073d27c4eeb23d4f748364b22f5b072cf92/moveit_ros/perception/mesh_filter/src/gl_renderer.cpp#L385-L390
I have a PR in order to fix this bug.
Your environment
Steps to reproduce
Follow the get started documentation and then launch this file with this configuration after creating a new package named
hello_moveit
. Don't forget to build the relevant package again with this command.sensor_3d.yaml
Change the path in
.sensors_3d(file_path = "/home/cihat/ws_moveit/src/hello_moveit/config/sensors_3d.yaml")
by you.And finally run this command
Expected behaviour
It should not be crashed while running demo with sensor_3d option.
Actual behaviour
It crashed while running demo with sensor_3d option.
Backtrace or Console output
Backtrace Output : https://gist.github.com/CihatAltiparmak/c4e82c7bfb0650e33716edadaac6a93d#file-backtrace_outputs-txt
Console Output: https://gist.github.com/CihatAltiparmak/c4e82c7bfb0650e33716edadaac6a93d#file-error_when_moved_group_node_is_ran