ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Implementation of header files??

asked 2011-07-26 19:53:29 -0600

SAK gravatar image

updated 2014-04-20 14:09:37 -0600

ngrennan gravatar image

Hi everyone,

I was searching for the implementation of header files like MultiRayShape.hh, RaySensor.hh, but i didn't found it in any folder, do anyone have any idea where these files are implemented. you in find these header files in ../ros/diamondback/stacks/simulator_gazebo/gazebo/gazebo/include/gazebo/,,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2011-07-26 21:13:33 -0600

Lorenz gravatar image

updated 2011-08-05 07:53:05 -0600

hsu gravatar image

The file MultiRayShape.cc is in simulator_gazebo/gazebo/build/gazebo/server/physics.

Please note that the files you are seeking are not present in /opt/ros/diamondback. The debian build process removes the build subdirectory when creating the debian archives. That means you need to check out the stack gazebo_simulation from source. It is also important that you first call rosmake gazebo to actually download and extract the gazebo sources.

To do so, the easiest way is to use rosinstall and create an overlay and then check out the source. The following steps should work.

source /opt/ros/diamondback/setup.bash
sudo apt-get install python-setuptools
sudo easy_install rosinstall
mkdir -p ~/ros-gazebo/workspace
rosinstall ~/ros-gazebo /opt/ros/diamondback ~/ros-gazebo/workspace
cd ~/ros-gazebo/workspace
svn co https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/tags/diamondback simulator_gazebo
source ~/ros-gazebo/setup.bash
rosmake gazebo_worlds

Now you should be able to find the sources you want in ~/ros-gazebo/workspace/simulator_gazebo/gazebo/build/gazebo/server/physics

edit flag offensive delete link more

Comments

i didnt understood the part debian build process removes the build subdirectory when creating the debian archives. please can you clearify in more detail. and also if the files are not present in /opt/ros/diamondback then where i can find it. basically i want to make an ir sensor.
SAK gravatar image SAK  ( 2011-07-26 21:33:30 -0600 )edit
this is the link to the file .https://kforge.ros.org/gazebo/trac/browser#server/physics but the problem for me is that i want to know where it is implemented in ros, because i can find the header files only, not the other .cc or .cpp files for there implementation.
SAK gravatar image SAK  ( 2011-07-26 21:41:10 -0600 )edit
If you install ros in Ubuntu, you normally use debian packages. Willow garage builds them, but removes the directory that contains the files you are interested in. You need to check the code with `svn co https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/tags/diamondback simulator_gazebo`
Lorenz gravatar image Lorenz  ( 2011-07-26 22:01:31 -0600 )edit
Thanks your knowledge is now helping me out. i search the full directory but unfortunately i didn't find anything in the given link or on INTERNET. please can you guide me to the direct source. it will be quite nice. after implementing ir, my next step is to make sonar sensor,that will from scratch.
SAK gravatar image SAK  ( 2011-07-26 22:08:42 -0600 )edit
rosinstall ~/ros-gazebo /opt/ros/diamondback ~/ros-gazebo/workspace,,,, gives error.. 'i'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/local/bin/rosinstall", line 4, in <module> import pkg_resources ImportError: No module named pkg_resources
SAK gravatar image SAK  ( 2011-07-26 22:23:32 -0600 )edit
you are genius.. thanks for your help, but i didnt find the build directory.. can you check the commands again in your comments.
SAK gravatar image SAK  ( 2011-07-26 22:54:34 -0600 )edit
There was a step missing. You need to source setup.bash. I updated the instructions accordingly. After the rosmake step, the build directory should be present.
Lorenz gravatar image Lorenz  ( 2011-07-26 23:01:08 -0600 )edit
Thanks you save alot of time of mine.. you are reallly genious
SAK gravatar image SAK  ( 2011-07-26 23:38:03 -0600 )edit

Question Tools

Stats

Asked: 2011-07-26 19:53:29 -0600

Seen: 782 times

Last updated: Aug 05 '11