Home | Tutorials | Wiki | Issues
Ask Your Question

kumpakri's profile - activity

2019-02-20 04:36:45 -0600 asked a question Why is a robot's link sinking under ground when I assign to it z axis coordinate of 0 at each update

Why is a robot's link sinking under ground when I assign to it z axis coordinate of 0 at each update I have a model plug

2019-02-19 10:39:17 -0600 asked a question Why does robot behave differently written in SDF and written in URDF with SDF code included in <gazebo> tags

Why does robot behave differently written in SDF and written in URDF with SDF code included in <gazebo> tags I hav

2019-02-18 02:22:42 -0600 received badge  Famous Question (source)
2019-02-14 07:27:39 -0600 received badge  Notable Question (source)
2019-02-13 01:34:36 -0600 received badge  Popular Question (source)
2019-02-12 02:16:42 -0600 edited question Is it Possible To Model a Spring?

Is it Possible To Model a Spring? Is it possible to/did anybody create a physically true model of a spring in Gazebo? Th

2019-02-11 11:28:18 -0600 asked a question Is it Possible To Model a Spring?

Is it Possible To Model a Spring? Is it possible to/did any create a physically true model of a spring in Gazebo? The ki

2019-02-11 11:04:22 -0600 commented question Problem with Fixed Joints

Gazebo usually treats a two links connected with fixed joint as one. It chooses one of the links name (it has always bee

2019-02-11 11:03:51 -0600 commented question Problem with Fixed Joints

Gazebo usually treats a two links connected with fixed joint as one. It chooses one of the links name (it has always bee

2019-02-07 09:18:53 -0600 asked a question Gazebo capability of light effects simulation

Gazebo capability of light effects simulation Say I want to see how well the visual localization on a robot would do dur

2019-02-06 11:45:22 -0600 received badge  Notable Question (source)
2019-02-05 16:21:54 -0600 answered a question Creating a world file with a series of cylinders as obstacles

you might be looking fot the population. It's a characteristic of the world. So you put the tag directly under the <

2019-02-05 11:05:43 -0600 marked best answer Can I run two gazebo_ros_control plugins in one simulation?

I run a simulation into which I spawn a robot with gazebo_ros_control plugin called simply "gazebo_ros_control". This loads all successfully. Then there is a model inside the world which has gazebo_ros_control plugin. This one only starts the joint_states topic, but not the command, pid and state topic for each joint individually.

plugin of the model inside the world:

  <transmission name="tran_robotic_arm">
    <type>transmission_interface/SimpleTransmission</type>
    <joint name="arm_base_joint1">
      <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
    </joint>
    <actuator name="arm_base_motor">
      <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
      <mechanicalReduction>1</mechanicalReduction>
    </actuator>
  </transmission>

  <plugin name="testbench_control" filename="libgazebo_ros_control.so">
    <robotNamespace>/testbench</robotNamespace>
    <robotSimType>gazebo_ros_control/DefaultRobotHWSim</robotSimType>
    <legacyModeNS>true</legacyModeNS>
  </plugin>

control yaml

testbench:
  joint_state_controller:
    type: joint_state_controller/JointStateController
    publish_rate: 50  

  arm_base_joint1_controller:
    type: velocity_controllers/JointVelocityController
    joint: arm_base_joint1
    pid: {p: 10.0, i: 0.1, d: 0.01}

control launch file:

<launch>

  <!-- Load joint controller configurations from YAML file to parameter server -->
  <rosparam file="$(find testbench_control)/config/control.yaml" command="load"/>

  <!-- load the controllers -->
  <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
    output="screen" ns="/testbench" args=" joint_state_controller
                                      arm_base_joint1_controller" />

  <!-- convert joint states to TF transforms for rviz, etc -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
    respawn="false" output="screen">
    <remap from="/joint_states" to="/testbench/joint_states" />
  </node>

</launch>

launch file

<?xml version="1.0"?>
<launch>
    <!-- testbench ros_control launch file -->
    <!-- creates topics for joints state and joint controller -->
    <include file="$(find testbench_control)/launch/control.launch" />
</launch>

I launch this launch file after the simulation is all loaded. I want to use the /testbench/arm_base_joint1_controller/command topic to control the robotic arm joint. Is it possible? What am I doing wrong?

2019-02-05 11:05:11 -0600 answered a question Can I run two gazebo_ros_control plugins in one simulation?

Turned out, that if I use this --namespace argument when launching the controller_spawner, the gazebo_ros_control plugin

2019-02-05 10:48:42 -0600 edited question Why can't I control the second robot in the simulation?

Why can't I control the second robot in the simulation? I'm having problem launching and controlling two robots in one G

2019-02-05 10:45:12 -0600 asked a question Why can't I control the second robot in the simulation?

Why can't I control the second robot in the simulation? I'm having problem launching and controlling two robots in one G

2019-02-05 08:41:14 -0600 received badge  Popular Question (source)
2019-02-05 08:40:28 -0600 received badge  Famous Question (source)
2019-02-05 08:40:20 -0600 received badge  Famous Question (source)
2019-02-05 06:49:17 -0600 commented question Running multiple Gazebo simulations on one ROS core

I didn't see it, and this is almost exactly how I ended up launching the two ROS cores. Just your link to repos is wrong

2019-02-05 06:44:10 -0600 received badge  Famous Question (source)
2019-02-04 10:39:21 -0600 received badge  Student (source)
2019-02-04 03:19:22 -0600 edited answer Running multiple Gazebo simulations on one ROS core

The problem in this case is, that gazebo has a fixed name for the topic for it's processes. There is a topic called /gaz

2019-02-04 03:13:39 -0600 marked best answer Running multiple Gazebo simulations on one ROS core

Is it possible to run multiple Gazebo simulation with one ROS core and be able to interact with all the simulation (read and sent messages)?

If so, what is needed in order for this to work?


EDIT 1

I have manage to run two simulation by putting

export GAZEBO_MASTER_URI=http://localhost:11346;

before launching the second simulation and launching each simulation in different group.

<?xml version="1.0"?>
<launch>
    <!-- define arguments -->
    ...
    <!-- startup gazebo WORLD -->
   ...
   <group ns="$(arg group_name)">
        <param name="robot_description"
            command="$(find xacro)/xacro --inorder '$(find robot_gazebo)/launch/upload_robot.xacro'" />
        <node name="urdf_spawner_$(arg group_name)" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
            args="-urdf -model robot_$(arg group_name) -param robot_description -x $(arg robot_x) -y $(arg robot_y) -z $(arg robot_z)"/>
        <include file="$(find robot_control)/launch/$(arg group_name)_control.launch" if="$(eval control)" >
        </include>
    </group>
</launch>

I need to use the same model. To be sure I made duplicate model and named it according to the group name. I have made separate control launches for both models and set the gazebo_ros_control controllers into different namespaces.

When I launch the first simulation, it loads as normally and all the controllers loads. As soon as I run the second simulation, however, the controllers case to exist in topic list and only 3 controller topics out of 8 expected appears on rostopic list for the second robot: the 2nd_robot/joint_states and 2nd_robot/left_wheel/command and 2nd_robot/right_wheel/command (EDIT 3: This number of topics for the second robot is actually right, because I'm using the VelocityJointInterface). Only 1st_robot/joint_states remains for the first robot.

So I have two simulations running with a robot loaded, but I can't control either of the robots (EDIT 3: I can control one of the robot, the second). How do I fix this?


EDIT 2

I have even run each Gazebo simulation on different ROS core using the multimaster-fkie package, so each Gazebo simulation has different GAZEBO_MASTER_URI and ROS_MASTER_URI, yet the behavior is still the same.

2019-02-04 03:13:05 -0600 answered a question Running multiple Gazebo simulations on one ROS core

The problem in this case is, that gazebo has a fixed name for the topic for it's processes. There is a topic called /gaz

2019-02-04 02:44:39 -0600 received badge  Popular Question (source)
2019-02-01 03:21:36 -0600 edited question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-02-01 03:21:02 -0600 edited question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-02-01 03:20:16 -0600 edited question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-02-01 03:18:14 -0600 received badge  Notable Question (source)
2019-01-31 10:26:14 -0600 edited question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-01-31 05:22:22 -0600 edited question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-01-31 04:58:02 -0600 edited question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-01-30 11:44:32 -0600 received badge  Popular Question (source)
2019-01-30 09:21:00 -0600 edited question Can I run two gazebo_ros_control plugins in one simulation?

Can I run two gazebo_ros_control plugins in one simulation? I run a simulation into which I spawn a robot with gazebo_ro

2019-01-30 07:17:33 -0600 asked a question Can I run two gazebo_ros_control plugins in one simulation?

Can I run two gazebo_ros_control plugins in one simulation? I run a simulation into which I spawn a robot with gazebo_ro

2019-01-30 03:29:33 -0600 asked a question What is the velocity assigned to the gazebo-ros-conrtol controller

What is the velocity assigned to the gazebo-ros-conrtol controller When I create a transmission for the wheels of my rob

2019-01-29 08:17:49 -0600 asked a question Running multiple Gazebo simulations on one ROS core

Running multiple Gazebo simulations on one ROS core Is it possible to run multiple Gazebo simulation with one ROS core a

2019-01-28 12:50:17 -0600 received badge  Famous Question (source)
2019-01-25 08:06:34 -0600 received badge  Popular Question (source)
2019-01-24 02:21:06 -0600 edited question Why does tf::TransformBroadcaster crashes Gazebo simulation

Why does tf::TransformBroadcaster crashes Gazebo simulation I'm launching a simulation with a gazebo-ros plugin, where I

2019-01-24 02:17:21 -0600 edited question Why does tf::TransformBroadcaster crashes Gazebo simulation

Why does tf::TransformBroadcaster crashes Gazebo simulation I'm launching a simulation with a gazebo-ros plugin, where I

2019-01-21 11:25:12 -0600 asked a question Why does tf::TransformBroadcaster crashes Gazebo simulation

Why does tf::TransformBroadcaster crashes Gazebo simulation I'm launching a simulation with a gazebo-ros plugin, where I

2019-01-17 03:58:41 -0600 marked best answer What is an equivalent to Gazebo 9 function physics::Joint::Position() in Gazebo 7 for prismatic joint?

I was using the physics::Joint::Position() function in Gazebo 9 to get the deflection of the child link from its initial position. Now I want to implement the same in Gazebo 7, but it doesn't have this function and I can't find anything in the API documentation, that looks like it does the same thing.

What can I use to get the deflection of the prismatic joint in Gazebo 7?

2019-01-17 03:58:17 -0600 received badge  Notable Question (source)
2019-01-16 08:37:43 -0600 commented answer What is an equivalent to Gazebo 9 function physics::Joint::Position() in Gazebo 7 for prismatic joint?

I was thinking about that, but the function returns an angle. How do I map this value to the prismatic joint deflection

2019-01-16 08:35:44 -0600 received badge  Popular Question (source)
2019-01-15 12:33:50 -0600 received badge  Famous Question (source)