0
$\begingroup$

Rosanswers logo

Hi there,

As said in the subject line, I want to find a way to visualize the objects from household_objects_database, and from grasp playpen dataset (which is in .bag format).

I looked up the threads in ROS community and there exists one solution on the household database. From this thread, http://answers.ros.org/question/706/household_database-visualization, it appears that someone had made a 'urdf' copy of the household_objects_database, then we could try spawning the objects in gazebo from those urdf files.

Is there some other ways of doing that? And for objects in .bag format, how to visualize that, or say how to import that to gazebo or rviz?(all I know now is I can use rosbag to play back the data and put it in rviz). Is there any existing tool to do that, or I need to do some programming by myself. Any suggestion would help me in getting an idea of where to start. I think this should be helpful to those who want to make use of those two datasets. Thanks.


Originally posted by vincent on ROS Answers with karma: 311 on 2011-08-14

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

in the grasp_playpen package in Diamondback's sandbox is a file, src/grasp_playpen/draw_database_object.py. If you run it on the command line, and then enter the model_id of the object you wish to visualize, it will draw it in rviz on the "/grasp_markers" Marker topic in "/base_footprint" frame.

That code is in Python, so if you're writing C++ and want to do the same sort of thing programmatically, a good example is (alas, in Electric, not in Diamondback; there's probably an example in Diamondback but I'm not sure exactly where offhand) ghosted_gripper.cpp in pr2_marker_control/src. Look at the getModelMesh function and where it's used in goalCB().


Originally posted by hsiao with karma: 741 on 2011-08-15

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by vincent on 2011-08-17:
thx a lot.

Comment by hsiao on 2011-08-16:
look at the graspit_pipeline package in diamondback_sandbox, in src/graspit_pipeline, grasp_playpen_scans_and_models.py and GraspitPipeline.py . (Sorry it's all Python, but hopefully it's understandable enough to translate if you're writing C++.)

Comment by hsiao on 2011-08-16:
Yup, that's the interface. You can import the object from the playpen dataset as a mesh into the graspit simulator, but not the point cloud. You can visualize the point cloud in rviz, though. For sample code that loads grasp playpen point clouds and ground truth objects and poses and such,

Comment by vincent on 2011-08-16:
i think i found it. "https://code.ros.org/svn/wg-ros-pkg/stacks/graspit_simulator/trunk/graspit_interface/launch/ros_graspit_interface.launch", from the source code, but not included in the debs.

Comment by vincent on 2011-08-16:
thx. another question, i was using the graspit-simulator(downloaded from the debs) but couldn't find the interface between ros and graspit. Is there a rosnode I need to start for interface? And is there anyway to import the point cloud from playpen-dataset .bag file to graspit simulator?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.