Ask Your Question

TouchDeeper's profile - activity

2019-10-18 05:45:04 -0600 received badge  Notable Question (source)
2019-10-15 02:25:20 -0600 asked a question The color of gazebo_ros_openni_kinect's pointcloud2 is different with the image

The color of gazebo_ros_openni_kinect's pointcloud2 is different with the image Hello, I have a Kinect gazebo model. k

2019-10-15 02:23:41 -0600 asked a question The color of gazebo_ros_openni_kinect's pointcloud2 is different with the image

The color of gazebo_ros_openni_kinect's pointcloud2 is different with the image Hello, I have a Kinect gazebo model. k

2019-10-03 00:15:48 -0600 received badge  Popular Question (source)
2019-09-27 20:04:41 -0600 received badge  Popular Question (source)
2019-09-26 22:43:34 -0600 asked a question for loop to create multiple objects in gazebo

for loop to create multiple objects in gazebo environment: ros kinetic I want to use for loop to create multiple object

2019-09-26 05:18:45 -0600 commented answer About /world frame

@DimitriProsser Is the world frame a pre-defined coordinate system by tf?

2019-07-26 04:34:23 -0600 received badge  Famous Question (source)
2019-05-01 22:25:24 -0600 received badge  Notable Question (source)
2019-04-02 02:18:02 -0600 received badge  Enthusiast
2019-03-28 09:07:00 -0600 asked a question gazebo model embed in each other when contact

gazebo model embed in each other when contact Hi, I want to simulate a banana put in the bowl, the result is below: A

2019-03-28 08:25:42 -0600 received badge  Famous Question (source)
2019-03-28 07:50:49 -0600 commented answer ros c++ pause unpause gazebo

Hi,@janindu Thanks for your point. You are right. I‘m too careless.

2019-03-28 07:48:13 -0600 marked best answer ros c++ pause unpause gazebo

Hi, I want to control the gazebo simulation by c++. My core code is below:

        ros::ServiceClient pauseGazebo = n_.serviceClient<std_srvs::Empty>("/gazebo/pause_physics");
        std_srvs::Empty pauseSrv;
        pauseGazebo.call(pauseSrv);
        std::cout<<"enter q to continue"<<std::endl;
        char key;
        std::cin>>key;
        if('q' == key)
        {
            pauseGazebo.shutdown();
            ros::ServiceClient unpauseGazebo = n_.serviceClient<std_srvs::Empty>("/gazebo/unpause_physics");
            std_srvs::Empty unpauseSrv;
            pauseGazebo.call(unpauseSrv);
            std::cout<<"q is pushed"<<std::endl;
        }

The puase work well, after I enter q, the "q is pushed" output, but the gazebo is still in the state of pasue. Can you provide some tip?

2019-03-28 07:48:06 -0600 received badge  Popular Question (source)
2019-03-28 01:15:59 -0600 marked best answer Banana rotates by itself in Gazebo, I don't know why.

I'm using gazebo7 in ubuntu16.04.

I launch a bannana model in gazebo,everything is ok but the bannana will rotate slowly by itself.

urdf below:

<?xml version="1.0" ?>
<robot name="Bannana">
  <material name="yellow">
        <color rgba="1 0.4 0 1"/>
  </material>
  <link name="Bannana">
    <inertial>
      <origin
        xyz="0.0014177 4.15280000000162E-06 0.026526"
        rpy="0.0 0.0 0.0" />
      <mass
        value="0.11082" />
      <inertia
        ixx="2.48347659000621E-05"
        ixy="1.68484882757417E-06"
        ixz="-1.05360215654521E-06"
        iyy="0.000186690109925898"
        iyz="1.13501975389491E-08"
        izz="0.000175609996584435" />
    </inertial>
    <visual>
      <origin xyz="0 0 0" rpy="1.5707963267949 0 0" />
      <geometry>
        <mesh
          filename="package://object_description/meshes/Bannana.STL" />
      </geometry>
      <material name="yellow" />
    </visual>
    <collision>
      <origin xyz="0 0 0" rpy="1.5707963267949 0 0" />
      <geometry>
        <mesh
          filename="package://object_description/meshes/Bannana.STL" />
      </geometry>
    </collision>
  </link>
  <gazebo reference="Bannana">
            <material>Gazebo/Yellow</material>
  </gazebo>

</robot>

launch file below:

<launch>

  <!-- these are the arguments you can pass this launch file, for example paused:=true -->
  <arg name="paused" default="false"/>
  <arg name="use_sim_time" default="true"/>
  <arg name="gui" default="true"/>
  <arg name="headless" default="false"/>
  <arg name="debug" default="false"/>
  <arg name="world_name" default="$(find object_gazebo)/world/table.world"/>

  <!-- We resume the logic in empty_world.launch -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="debug" value="$(arg debug)" />
    <arg name="gui" value="$(arg gui)" />
    <arg name="paused" value="$(arg paused)"/>
    <arg name="use_sim_time" value="$(arg use_sim_time)"/>
    <arg name="headless" value="$(arg headless)"/>
    <arg name="world_name" value="$(arg world_name)" />
  </include>

  <!-- Load the URDF into the ROS Parameter Server -->
  <param name="robot_description" command="$(find xacro)/xacro --inorder '$(find object_description)/urdf/Bannana.urdf'" /> 
  <!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot -->
  <node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
    args="-urdf
        -model Bannana 
        -param robot_description
        -x 0
        -y 0
        -z 1 "/> 
</launch>

Here is the workspace link,and there is a bannana.gif in the home directory to describe the question.

Can you give me some advice? Thanks a lot!

2019-03-28 01:15:58 -0600 received badge  Scholar (source)
2019-03-28 01:15:51 -0600 answered a question Banana rotates by itself in Gazebo, I don't know why.

I enlarge the mass by 10 times, and enlarge the inertial by 100 times, the rotate disappear. It is just a solution. I do

2019-03-28 01:10:29 -0600 asked a question ros c++ pause unpause gazebo

ros c++ pause unpause gazebo Hi, I want to control the gazebo simulation by c++. My core code is below: ros::Se

2019-02-13 06:32:41 -0600 commented question Banana rotates by itself in Gazebo, I don't know why.

Hi,@Kluun I'm sorry for took so long time to reply.A few days ago is the Spring Festival in China. I was preparing to ha

2019-01-28 07:58:08 -0600 received badge  Notable Question (source)
2019-01-28 02:48:11 -0600 received badge  Popular Question (source)
2019-01-27 11:46:55 -0600 received badge  Student (source)
2019-01-27 10:33:55 -0600 asked a question the object in gazebo rostate by itself.I don't know why

the object in gazebo rostate by itself.I don't know why I'm using gazebo7 in ubuntu16.04. I launch a bannana model in

2019-01-27 10:33:55 -0600 asked a question Banana rotates by itself in Gazebo, I don't know why.

object rotate by itself in gazebo,i don't know why. I'm using gazebo7 in ubuntu16.04. I launch a bannana model in gaze