How to implement synchronous simulation of robots in rviz and gazebo? [closed]

asked 2018-03-28 05:09:44 -0600

stefanvan gravatar image

updated 2018-03-28 05:21:34 -0600

Hi everyone, I'm a clumsy beginner in ros. Now I got a task of implementing synchronous simulation of my robot model both in rviz and gazebo, and I put a laser and a imu on the model previously. I want the robot to work on gazebo and the data of these two sensors can be observed in rviz intuitively. In addition, the model should move automatically in rviz according to the messages on topic /cmd_vel that users publish. How can I achieve my purpose? Here is the definition of my laser gazebo plugin and imu gazebo plugin:

  <xacro:macro name="sim_imu">
        <plugin name="imu_controller" filename="">
            <xyzOffsets>0 0 0</xyzOffsets>
            <rpyOffsets>0 0 0</rpyOffsets>

<xacro:macro name="sim_laser">
    <gazebo reference="laser_link">
        <sensor type="ray" name="laser_sensor">
            <pose>0.01 0 0.0175 0 -0 0</pose>
            <plugin name="gazebo_ros_laser_controller" filename="">
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by jayess
close date 2018-03-31 11:00:56.736713


Duplicate of #q287058

jayess gravatar image jayess  ( 2018-03-31 11:01:12 -0600 )edit