MoveIt add collision box coordinates system understanding
Hey there,
Anyone can help me understanding moveIt coordinates system while adding collisions. I am attaching the code and I want an understanding of one lines.
Src of code : Moveit tutorials : moveit_tutorials/doc/collision_environments/scripts/collision_scene_example.py
from __future__ import print_function
import rospy
from moveit_commander import RobotCommander, PlanningSceneInterface
import geometry_msgs.msg
import time
import sys
class CollisionSceneExample(object):
def __init__(self):
self._scene = PlanningSceneInterface()
# clear the scene
self._scene.remove_world_object()
self.robot = RobotCommander()
# pause to wait for rviz to load
print("============ Waiting while RVIZ displays the scene with obstacles...")
# TODO: need to replace this sleep by explicitly waiting for the scene to be updated.
rospy.sleep(2)
def add_one_box(self):
box1_pose = [0.25, 0.25, 0.0, 0, 0, 0, 1]
box1_dimensions = [0.25, 0.25, 0.75]
self.add_box_object("box1", box1_dimensions, box1_pose)
I want the explanation of below line:
box1_pose = [0.25, 0.25, 0.0, 0, 0, 0, 1] # Over here arg_1 = X pos, arg_2 = Y pos, arg_3 = Z pos, What about others?
Thanks for helping!
I doubt this is "spam or advertising".
In addition, we don't close questions here on ROS Answers when they've been answered.
Simply click on the checkmark of the answer you feel best answers your question. It will turn green, and will clearly mark the question as answered.
Actually, this question was silly. I have not seen a proper code and posted a question, that was the reason for closing this question.
I understand, but that's how Q&A sites work. It's rare that someone is the only one to have a question, and hopefully the next person who has this one will google it and find it answered for them.
Okay! understood and thanks for the help! @gvdhroom and @fvd