The first thing I did was import the mesh object and use the publish current scene option. Next I used the command you said to use to see object by using the command rosservice call /get_planning_scene '{components : {components: 24}}' .
scene:
name: ''
robot_state:
joint_state:
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
name: []
position: []
velocity: []
effort: []
multi_dof_joint_state:
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
joint_names: []
transforms: []
twist: []
wrench: []
attached_collision_objects: []
is_diff: False
robot_model_name: ''
fixed_frame_transforms: []
allowed_collision_matrix:
entry_names: []
entry_values: []
default_entry_names: []
default_entry_values: []
link_padding: []
link_scale: []
object_colors: []
world:
collision_objects:
-
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: /base_link
id: box.stl
type:
key: ''
db: ''
primitives: []
primitive_poses: []
meshes:
-
triangles:
-
vertex_indices: [0, 1, 2]
-
vertex_indices: [2, 3, 0]
-
vertex_indices: [4, 5, 6]
-
vertex_indices: [6, 7, 4]
-
vertex_indices: [0, 4, 7]
-
vertex_indices: [7, 1, 0]
-
vertex_indices: [1, 7, 6]
-
vertex_indices: [6, 2, 1]
-
vertex_indices: [2, 6, 5]
-
vertex_indices: [5, 3, 2]
-
vertex_indices: [4, 0, 3]
-
vertex_indices: [3, 5, 4]
vertices:
-
x: 0.0499999783933
y: 0.049999974668
z: -0.0500000007451
-
x: 0.0499999783933
y: -0.0499999783933
z: -0.0500000007451
-
x: -0.0499999858439
y: -0.0499999709427
z: -0.0500000007451
-
x: -0.0499999597669
y: 0.0499999970198
z: -0.0500000007451
-
x: 0.0500000007451
y: 0.0499999523163
z: 0.0500000007451
-
x: -0.049999974668
y: 0.0499999783933
z: 0.0500000007451
-
x: -0.0499999970198
y: -0.0499999597669
z: 0.0500000007451
-
x: 0.0499999448657
y: -0.0500000081956
z: 0.0500000007451
mesh_poses:
-
position:
x: -3.9
y: 0.0
z: 0.7
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
planes: []
plane_poses: []
operation: 0
octomap:
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
origin:
position:
x: 0.0
y: 0.0
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
octomap:
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
binary: False
id: ''
resolution: 0.0
data: []
is_diff: False
I was unable to verify if the box mesh I imported was found.
I made sure to add the capability in the move_group.launch file as well.
The next thing I did was I created a rosnode in which I tired to create a client of the getplanningscene service in C++. I was trying to output the names of the objects in the world. However at compile time it said that the service was not a apart of moveit_msgs. So I was wondering if you could tell me which class/library I needed to include in order for the compile time error to go away. I appreciate all the help you have offered and hope to get to a resolution soon.