Home | Tutorials | Wiki | Issues
Ask Your Question

mozcelikors's profile - activity

2014-01-15 13:04:26 -0600 received badge  Famous Question (source)
2013-12-11 12:45:52 -0600 received badge  Famous Question (source)
2013-12-11 12:45:52 -0600 received badge  Notable Question (source)
2013-11-20 03:28:55 -0600 received badge  Notable Question (source)
2013-09-05 07:16:56 -0600 received badge  Popular Question (source)
2013-08-13 20:04:48 -0600 received badge  Popular Question (source)
2013-08-03 16:42:26 -0600 asked a question Driving a simple robot model (1.5 Building a Robot with SDF Tutorial)

Hello,

I'm trying to follow the tutorial that describes how to create a robot model from model.sdf file on Gazebo 1.5. I intend to make my own robot, and be able to drive it, differential or skid steering, doesn't matter. But I think there is something wrong with the robot provided, I'm not able to drive it by subscribing to /gazebo/cmd[underscore]vel topic, or using the differential drive plugin (for /gz/cmd[underscore]vel/ topic). I've narrowed the problems down and now I think the .sdf file provided has some problems (maybe a missing tag, link, or dummy container, or some wrong parameters). Since I don't know how exactly a sdf file is constructed and described, I need some help revising the model.sdf file below:

<?xml version="1.0" ?>
<sdf version="1.4">
  <model name="myrobot">
   <static>false</static>
    <link name="chassis">
      <pose>0 0 .1 0 0 0</pose>
    <inertial>
      <mass>1.0</mass>
      <inertia>
        <ixx>1.0</ixx>
        <ixy>0.0</ixy>
        <ixz>0.0</ixz>
        <iyy>1.0</iyy>
        <iyz>0.0</iyz>
        <izz>1.0</izz>
      </inertia>
    </inertial>
      <self_collide>1</self_collide>
      <collision name="collision">
        <geometry>
          <box>
            <size>.4 .2 .1</size>
          </box>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <box>
            <size>.4 .2 .1</size>
          </box>
        </geometry>
      </visual>
      <collision name="caster_collision">
        <pose>-0.15 0 -0.05 0 0 0</pose>
        <geometry>
          <sphere>
            <radius>.05</radius>
          </sphere>
        </geometry>
        <surface>
          <friction>
            <ode>
              <mu>0</mu>
              <mu2>0</mu2>
              <slip1>1.0</slip1>
              <slip2>1.0</slip2>
            </ode>
          </friction>
        </surface>
      </collision>
      <visual name="caster_visual">
        <pose>-0.15 0 -0.05 0 0 0</pose>
        <geometry>
          <sphere>
            <radius>.05</radius>
          </sphere>
        </geometry>
      </visual>
    </link>
    <link name="left_wheel">
      <pose>0.1 0.13 0.1 0 1.5707 1.5707</pose>
      <collision name="collision">
        <geometry>
          <cylinder>
            <radius>.1</radius>
            <length>.05</length>
          </cylinder>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <cylinder>
            <radius>.1</radius>
            <length>.05</length>
          </cylinder>
        </geometry>
      </visual>
    </link>
    <link name="right_wheel">
      <pose>0.1 -0.13 0.1 0 1.5707 1.5707</pose>
      <collision name="collision">
        <geometry>
          <cylinder>
            <radius>.1</radius>
            <length>.05</length>
          </cylinder>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <cylinder>
            <radius>.1</radius>
            <length>.05</length>
          </cylinder>
        </geometry>
      </visual>
    </link>
    <joint type="revolute" name="left_wheel_hinge">
      <pose>0 0 -0.03 0 0 0</pose>
      <child>left_wheel</child>
      <parent>chassis</parent>
      <axis>
        <xyz>0 1 0</xyz>
      </axis>
    </joint>
    <joint type="revolute" name="right_wheel_hinge">
      <pose>0 0 0.03 0 0 0</pose>
      <child>right_wheel</child>
      <parent>chassis</parent>
      <axis>
        <xyz>0 1 0</xyz>
      </axis>
    </joint>


<!-- Sensor 3 -->
<include>
  <uri>model://hokuyo</uri>
  <pose>-0.2 0 0.2 0 0 15.75</pose>
</include>

<joint name="hokuyo_joint" type="revolute">
  <child>hokuyo::link</child>
  <parent>chassis</parent>
  <axis>
    <xyz>0 0 -1</xyz>
    <limit>
      <upper>0</upper>
      <lower>0</lower>
    </limit>
  </axis>
</joint>
<!--  -->


<!-- Sensor1 -->
<include>
  <uri>model://hokuyo2</uri>
  <pose>-0.2 0.04 0.2 0 0 15.15</pose>
</include>
<joint name="hokuyo_joint2" type ...
(more)
2013-07-23 05:54:19 -0600 received badge  Student (source)
2013-07-22 04:01:21 -0600 asked a question Publishing multiple Hokuyo lasers sensor reading to a topic by writing and compiling a plugin

Hello,

I'm a beginner when it comes to Gazebo. I'm trying to make my own robot by following the 1.5 tutorials. I was able to add 5 hokuyo lasers, by simply including sensor tags, to my Gazebo model. Moreover, I was able to find and manipulate a plugin written for those rays. So now, I have a robot/model.sdf and robot/model.config file and it works all right. However, I don't know how to compile my librobotrayplugin.cc file by manipulating CMakeLists.txt. My Gazebo path is /usr/share/gazebo-1.8/plugins. I found this CMake file but don't know how to manipulate it. In addition, my $GAZEBOINCLUDEDIRS, $GAZEBOLIBRARYDIRS, $CMAKEINSTALLDIRS, (underscored versions) and $GAZEBO_LIBRARIES variables are seem to return NULL value even though I've executed /usr/share/gazebo-1.8/setup.sh. P.S: I'm executing gazebo by the following command, and have my .world file in there.

rosrun gazebo_ros gazebo

Here is my CMakeLists.txt for the sensor plugin that I don't know how to use:

cmake_minimum_required(VERSION 2.8)

include (FindPkgConfig)
if (PKG_CONFIG_FOUND)
  pkg_check_modules(GAZEBO gazebo REQUIRED)
else()
  message(FATAL_ERROR "pkg-config is required; please install it")
endif()

include_directories(${GAZEBO_INCLUDE_DIRS})
include_directories(/home/user/rosplugin/)
link_directories(${GAZEBO_LIBRARY_DIRS})

include(cmake/rospack.cmake)

get_rospack_flags(roscpp)
include_directories(${roscpp_INCLUDE_DIRS})
link_directories(${roscpp_LIBRARY_DIRS})
set(CMAKE_INSTALL_RPATH "${roscpp_LIBRARY_DIRS}")
add_library(ros_model_plugin SHARED ros_model_plugin.cc)
set_target_properties(ros_model_plugin PROPERTIES COMPILE_FLAGS "${roscpp_CFLAGS_OTHER}")
set_target_properties(ros_model_plugin PROPERTIES LINK_FLAGS "${roscpp_LDFLAGS_OTHER}")
target_link_libraries(ros_model_plugin ${roscpp_LIBRARIES})
install (TARGETS ros_model_plugin DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/gazebo_plugins/)

I don't know what to do. Any answer will be much appreciated