Ask Your Question

cmsoda's profile - activity

2013-05-06 02:28:03 -0500 received badge  Famous Question (source)
2013-05-06 02:28:03 -0500 received badge  Popular Question (source)
2013-05-06 02:28:03 -0500 received badge  Notable Question (source)
2013-04-19 22:35:10 -0500 received badge  Taxonomist
2012-10-31 10:44:00 -0500 received badge  Famous Question (source)
2012-10-18 10:27:26 -0500 received badge  Famous Question (source)
2012-10-18 10:27:26 -0500 received badge  Popular Question (source)
2012-10-18 10:27:26 -0500 received badge  Notable Question (source)
2012-08-15 05:38:36 -0500 received badge  Famous Question (source)
2012-08-15 05:38:36 -0500 received badge  Notable Question (source)
2012-08-01 05:10:35 -0500 received badge  Notable Question (source)
2012-05-08 19:50:58 -0500 received badge  Popular Question (source)
2012-04-18 18:57:37 -0500 received badge  Popular Question (source)
2011-09-02 11:30:46 -0500 marked best answer household_database visualization

If you just want to see them you can try spawning the objects in gazebo. I have urdfs for them here: http://people.csail.mit.edu/mitko/gazebo_stuff/household/urdf/ make sure to turn off shadows in gazebo though - you might get an error similar to this: http://answers.ros.org/question/1550/shadows-of-the-household-objects-in-gazebo

Here are also some useful RVIZ markers (which you have probably seen already) http://www.ros.org/wiki/pr2_tabletop_manipulation_apps/Troubleshooting

2011-09-02 10:59:58 -0500 marked best answer adding support lib and headers to ros package

You are naming three totally different things with "putting". A class cannot be used by a service (if you mean a ROS service), you need to provide a service server implementation.

Regarding "putting" in the sense of file location: If other packages besides the one you are implementing are using the class it is good practice to put the header in include/mypackage/header.h, and include the file in your sources via #include "mypackage/header.h". In that case you should also take care of exporting c++ directives in the manifest.

If the header file is only used in the package you can put it in src/.

The .cpp files usually go in src/.

Regarding CMake, in most cases you don't need to put the headers in there. If you create a new package the CMakeLists.txt already contains the commands for creating a library and exectable, you just need to uncomment them.

Can you be more precise on what exactly you are doing, give a minimal example and say what doesn't work (i.e. what means "cannot use it" for you, give the error messages)? Are you working in the same package or are you building a library package that you want to use in other packages? In the second case you need the export line in the manifest, but the term "-lros" is the linker directive for this package, i.e. instead of "-lros" it should be "-lmylib".

If class.h and class.cpp are in src/ and you have another source file in src/ you should be able to include and use class.h without a problem. If class.h is in include/mypackage/class.h, you should include that file using #include "mypackage/class.h".

2011-08-14 12:45:34 -0500 received badge  Good Question (source)
2011-08-11 02:55:29 -0500 answered a question adding support lib and headers to ros package

I added my class.h and class.cpp under src folder but when I compile I cannot use this inside another class that implement a services of the package. Also if I add the class.h I see error such as 'int not a know type'. Maybe I am not configuring correctly my manifest.xml. I added this. I also placing class.h under include/mypackage doesn't change.

<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib -Wl,-rpath,${prefix}/lib -lros"/>

2011-08-10 01:23:04 -0500 asked a question adding support lib and headers to ros package

Hi all, I want to create a support class for my ros package. Let's say I want to create a class which represent a database table. This class is used by many services in my package. Where should I put the header (support.h) file and the support.cpp files? If I add them under src when I compile the class cannot be found also I tried to add under cmakelists file but without success. Can someone help me? Best Regads

2011-07-06 05:13:29 -0500 marked best answer publishing file stream with ros

You can only use some basic data types. For your application you would use a primitive type (probably an uint8[]).

2011-06-27 03:21:44 -0500 asked a question publishing file stream with ros

Hi, I would like to create a service which publish as a topic a byte stream with the content of a file. It is possible to define inside a Ros service a data type variables ifstream? or could it be possible to use a primitive type for this purpose? Best Regards

2011-05-31 09:23:17 -0500 received badge  Nice Question (source)
2011-05-16 12:27:42 -0500 marked best answer Rviz visualize only 2d shape

You need to set the fixed_frame to a valid and connected frame_id for rviz to be able to render it in the scene. When meshes are not connected in the tf tree, rviz only displays the outline of the mesh at the origin.

2011-05-10 02:38:38 -0500 commented answer Rviz visualize only 2d shape
Ok, how do I set the fixed frame? In my marker I have defined in the header a frame_id="my_plane" should I set this as the fixed frame in rviz? Is this frame automatically connect?
2011-05-04 20:45:22 -0500 asked a question Rviz visualize only 2d shape

Hi all, I am visualizing COLLADA mesh file in rviz sending a MESH_RESOURCE marker. Every time I try to visualize the mesh I just get a 2D shape. How can I visualize a 3D object? I see a warning on rviz "fixed frame [/plan] does not exist" but everything else seems fine. I used for example the mesh package://pr2_description/meshes/base_v0/base.dae but I can see only the shape and not a full 3d image with rviz. Best Regards

2011-04-15 02:59:30 -0500 received badge  Student (source)
2011-04-14 21:12:04 -0500 asked a question household_database visualization

Hi all, I am trying to visualize with rviz the objects triangle mesh stored in the database. I call the household database GetModelMesh service and I put the returned points in a Marker for rviz visualization. I have noticed that every time I call the service GetModelMesh the value for mesh type is 0 which should be sphere. If I send the mesh vertices extracted to rviz and I set the marker type as sphere I always get the same sphere shape. Maybe I am missing something. How can I save the triangle mesh in a marker? It is correct that I get always a 0 as type from the GetModelMesh even if I change the object Id? Thanks