Hi Kaijen,<div><br></div><div>Ok thanks for this precision. I'm not sure how to implement the collision aware kinematics on top of arm kinematics. Gil, if you have any good advice on how to do that, they're welcome! I'll look into it on monday.</div>
<div><br></div><div>Thanks for all your answers as always.</div><div><br></div><div>Have a good week end.</div><div><br></div><div>Ugo<br><br><div class="gmail_quote">On Fri, Feb 18, 2011 at 10:15 PM, Kaijen Hsiao <span dir="ltr"><<a href="mailto:hsiao@willowgarage.com">hsiao@willowgarage.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Ugo,<br>
Setting self.perception_running = 0 in ik_utilities.py is meant to<br>
shunt you to non-collision-aware IK (arm_kinematics is<br>
non-collision-aware).  You need to be using a collision-aware IK<br>
service.  You don't need to have a constraint-aware service, just a<br>
collision-aware one--you can just ignore the constraint fields of the<br>
service call.  Gil can probably help you get a collision-aware IK<br>
service running, if you need help with that.<br>
<font color="#888888"><br>
-Kaijen<br>
</font><div><div></div><div class="h5"><br>
<br>
On Fri, Feb 18, 2011 at 6:56 AM, Ugo Cupcic <<a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a>> wrote:<br>
> Ok, so I'm still stuck with my problem of undetected collision between the<br>
> attached object and the environment.<br>
><br>
> I have one question:<br>
> Is this collision computed by the ik_constrained_planner? I had to set<br>
> "self.perception_running = 0" in ik_utilities.py, as I don't have an<br>
> ik_constrained_planner: I'm using the generic arm_kinematics module with my<br>
> robot. Would this explain the behavior I have?<br>
><br>
> Cheers,<br>
><br>
> Ugo<br>
><br>
><br>
> On Wed, Feb 16, 2011 at 11:47 AM, Ugo Cupcic <<a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a>> wrote:<br>
>><br>
>> Thanks a lot !! This was the node I was still missing!  I now have a first<br>
>> draft of the manipulation stack for our hand / arm (with still lots of<br>
>> improvement needed, but I'm already able to "theoretically" pick up and<br>
>> place a coke can).<br>
>><br>
>> Thank you all for your answers.<br>
>><br>
>> Cheers,<br>
>><br>
>> Ugo<br>
>><br>
>><br>
>> On Tue, Feb 15, 2011 at 7:51 PM, Gil Jones <<a href="mailto:gjones@willowgarage.com">gjones@willowgarage.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi Ugo,<br>
>>><br>
>>> To see what the current state of the environment server is you have to<br>
>>> run an another program in the planning environment package.  Here's the<br>
>>> contents of the launch file in<br>
>>> planning_environment/launch/display_planner_collision_model.launch:<br>
>>><br>
>>> <launch><br>
>>>   <node pkg="planning_environment"<br>
>>> name="display_planner_collision_model_environment_server"<br>
>>> type="display_planner_collision_model" respawn="false" output="screen"><br>
>>>     <param name="skip_collision_map" type="bool" value="false" /><br>
>>>     <param name="prefix" type="string" value="/environment_server" /><br>
>>>   </node><br>
>>> </launch><br>
>>><br>
>>><br>
>>> This node calls services in the environment_server and broadcasts markers<br>
>>> with the objects.  You should see a marker topic after you launch this, and<br>
>>> a collision map topic showing the state of the collision map the environment<br>
>>> server uses.<br>
>>><br>
>>> Are you sure you are processing the kinect data through the appropriate<br>
>>> set of self filters? You need to be filtering the robot and the attached<br>
>>> objects out of the point cloud in order for the grasping pipeline to<br>
>>> function.  I'm attaching a couple very experimental launch files that should<br>
>>> process the kinect data through the required pipeline to produce robot-free<br>
>>> collision maps.<br>
>>><br>
>>> Let me know how it goes.<br>
>>><br>
>>> -Gil<br>
>>><br>
>>> --<br>
>>> E. Gil Jones (<a href="mailto:gjones@willowgarage.com">gjones@willowgarage.com</a>)<br>
>>> Research Engineer<br>
>>> Willow Garage, Inc.<br>
>>> 68 Willow Road<br>
>>> Menlo Park, CA 94025<br>
>>> 650.475.9772<br>
>>><br>
>>><br>
>>> On Mon, Feb 14, 2011 at 9:34 AM, Ugo Cupcic <<a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a>> wrote:<br>
>>>><br>
>>>> Hi,<br>
>>>><br>
>>>> Thanks for your answer. I think that I still haven't figured out how to<br>
>>>> use the environment server properly. I still can't view the attached object.<br>
>>>><br>
>>>> I pasted the rostopic info for my environment server at the end [1]. If<br>
>>>> you have any hints to what may be the problem, they're welcome!<br>
>>>><br>
>>>> Cheers,<br>
>>>><br>
>>>> Ugo<br>
>>>><br>
>>>><br>
>>>><br>
>>>> [1]<br>
>>>>  rosnode info /environment_server<br>
>>>><br>
>>>> --------------------------------------------------------------------------------<br>
>>>> Node [/environment_server]<br>
>>>> Publications:<br>
>>>>  * /environment_server/state_validity<br>
>>>> [motion_planning_msgs/DisplayTrajectory]<br>
>>>>  * /environment_server/allowed_contact_regions_array<br>
>>>> [visualization_msgs/MarkerArray]<br>
>>>>  * /rosout [rosgraph_msgs/Log]<br>
>>>>  * /environment_server/collision_pose<br>
>>>> [motion_planning_msgs/DisplayTrajectory]<br>
>>>>  * /environment_server_contact_markers [visualization_msgs/Marker]<br>
>>>><br>
>>>> Subscriptions:<br>
>>>>  * /collision_object [mapping_msgs/CollisionObject]<br>
>>>>  * /tf [tf/tfMessage]<br>
>>>>  * /collision_map_occ [mapping_msgs/CollisionMap]<br>
>>>>  * /attached_collision_object [mapping_msgs/AttachedCollisionObject]<br>
>>>>  * /collision_map_occ_update [mapping_msgs/CollisionMap]<br>
>>>>  * /joint_states [sensor_msgs/JointState]<br>
>>>><br>
>>>> Services:<br>
>>>>  * /environment_server/tf_frames<br>
>>>>  * /environment_server/get_state_validity<br>
>>>>  * /environment_server/get_current_allowed_collision_matrix<br>
>>>>  * /environment_server/set_logger_level<br>
>>>>  * /environment_server/get_environment_safety<br>
>>>>  * /environment_server/revert_allowed_collisions<br>
>>>>  * /environment_server/get_joints_in_group<br>
>>>>  * /environment_server/get_loggers<br>
>>>>  * /environment_server/get_group_info<br>
>>>>  * /environment_server/get_execution_safety<br>
>>>>  * /environment_server/get_trajectory_validity<br>
>>>>  * /environment_server/get_collision_objects<br>
>>>>  * /environment_server/get_robot_state<br>
>>>>  * /environment_server/set_allowed_collisions<br>
>>>><br>
>>>><br>
>>>> On Fri, Feb 11, 2011 at 9:32 PM, Kaijen Hsiao <<a href="mailto:hsiao@willowgarage.com">hsiao@willowgarage.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> Hi Ugo,<br>
>>>>><br>
>>>>> On Mon, Feb 7, 2011 at 10:20 AM, Ugo Cupcic <<a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a>><br>
>>>>> wrote:<br>
>>>>> > I'm not sure on which topic I should subscribe to visualize the<br>
>>>>> > attached_object in rviz as well. (I looked at the tf but couldn't see<br>
>>>>> > any tf<br>
>>>>> > moving with the model, once the hand has grasped the can).<br>
>>>>><br>
>>>>> Just noticed this last bit in your last email.  Hopefully you've<br>
>>>>> figured it out already, but in case you haven't, you visualize<br>
>>>>> attached objects the same way you visualize all the collision models<br>
>>>>> that you've added to the collision environment.  In our setup, the<br>
>>>>> topic is /collision_model_markers/environment_server but yours may<br>
>>>>> vary if you've changed your setup significantly.  There's no separate<br>
>>>>> tf frame associated with the object being broadcast.<br>
>>>>><br>
>>>>> -Kaijen<br>
>>>>> _______________________________________________<br>
>>>>> ros-users mailing list<br>
>>>>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>>>>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Ugo Cupcic | Shadow Robot Company | <a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a><br>
>>>> Software Engineer | 251 Liverpool Road |<br>
>>>> need a Hand? | London N1 1LX | +44 20 7700 2487<br>
>>>> <a href="http://www.shadowrobot.com/hand/" target="_blank">http://www.shadowrobot.com/hand/</a> @shadowrobot<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> ros-users mailing list<br>
>>>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>>>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> ros-users mailing list<br>
>>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Ugo Cupcic | Shadow Robot Company | <a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a><br>
>> Software Engineer | 251 Liverpool Road |<br>
>> need a Hand? | London N1 1LX | +44 20 7700 2487<br>
>> <a href="http://www.shadowrobot.com/hand/" target="_blank">http://www.shadowrobot.com/hand/</a> @shadowrobot<br>
>><br>
><br>
><br>
><br>
> --<br>
> Ugo Cupcic | Shadow Robot Company | <a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a><br>
> Software Engineer | 251 Liverpool Road |<br>
> need a Hand? | London N1 1LX | +44 20 7700 2487<br>
> <a href="http://www.shadowrobot.com/hand/" target="_blank">http://www.shadowrobot.com/hand/</a> @shadowrobot<br>
><br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ugo Cupcic | Shadow Robot Company | <a href="mailto:ugo@shadowrobot.com" target="_blank">ugo@shadowrobot.com</a> <br>Software Engineer | 251 Liverpool Road | <br>
need a Hand? | London N1 1LX | +44 20 7700 2487 <br><a href="http://www.shadowrobot.com/hand/" target="_blank">http://www.shadowrobot.com/hand/</a> @shadowrobot <br><br>
</div>