Git Product home page Git Product logo

roch_simulator's People

Contributors

nrc-gaitech avatar

Watchers

 avatar  avatar

roch_simulator's Issues

Problem with Gazebo simulations

Hello,
I've having some trouble using Gazebo simulation. I have the following setup:

OS Ubuntu 16.04
ROS_DISTRO kinetic
ROS_VERSION 1.12.14

I created the catkin workspace and cloned the following repos:

git clone -b kinetic-devel https://github.com/ros-controls/ros_controllers.git
git clone -b kinetic https://github.com/Soy-Robotics/roch_robot.git
git clone -b kinetic https://github.com/Soy-Robotics/roch.git
git clone -b kinetic https://github.com/Soy-Robotics/roch_simulator.git
git clone -b kinetic https://github.com/Soy-Robotics/roch_viz.git

Then I used catkin build to build the packages. It can be built with a few warnings:

[build] Summary: All 28 packages succeeded!                                    
[build]   Ignored:   4 packages were skipped or are blacklisted.               
[build]   Warnings:  4 packages succeeded with warnings.                       
[build]   Abandoned: None.                                                     
[build]   Failed:    None.                                                     
[build] Runtime: 55.4 seconds total.                                           
[build] Note: Workspace packages have changed, please re-source setup files to use them.

I added the environment variables to my ~./bashrc:

export ROCH_BASE=roch
export ROCH_NAME="roch"
export ROCH_TYPE="roch"
export ROCH_STACKS=standard
export ROCH_3D_SENSOR=kinect
export ROCH_LASER=ls01c
export ROCH_3D_SENSOR_ENABLE=true
export ROCH_3D_SENSOR_NAV_ENABLE=true
export ROCH_LASER_ENABLE=false
export ROCH_SERIAL_PORT="/dev/roch"
export ROCH_SIMULATION="true"

When I run the gazebo simulation with the following command:
roslaunch roch_gazebo roch_playpen.launch
I am getting the following warnings and errors:

xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
deprecated: xacro tags should be prepended with 'xacro' xml namespace.
[WARN] [1563542180.939693, 0.000000]: DEPRECATION warning: --shutdown-timeout has no effect.
[ERROR] [1563542182.704518532, 2741.261000000]: GazeboRosControlPlugin missing <legacyModeNS> while using DefaultRobotHWSim, defaults to true.
This setting assumes you have an old package with an old implementation of DefaultRobotHWSim, where the robotNamespace is disregarded and absolute paths are used instead.
If you do not want to fix this issue in an old package just set <legacyModeNS> to true.
[ WARN] [1563542182.818861144, 2741.261000000]: Deprecated syntax, please prepend 'hardware_interface/' to 'VelocityJointInterface' within the <hardwareInterface> tag in joint 'front_left_wheel'.
[ERROR] [1563542182.820512414, 2741.261000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/front_left_wheel
[ WARN] [1563542182.820581968, 2741.261000000]: Deprecated syntax, please prepend 'hardware_interface/' to 'VelocityJointInterface' within the <hardwareInterface> tag in joint 'front_right_wheel'.
[ERROR] [1563542182.821651313, 2741.261000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/front_right_wheel
[ WARN] [1563542183.138814614, 2741.459000000]: updateConfig() called on a dynamic_reconfigure::Server that provides its own mutex. This can lead to deadlocks if updateConfig() is called during an update. Providing a mutex to the constructor is highly recommended in this case. Please forward this message to the node author.
[ERROR] [1563542183.155111199, 2741.469000000]: This controller requires a hardware interface of type 'hardware_interface::ImuSensorInterface'. Make sure this is registered in the hardware_interface::RobotHW class.
[ERROR] [1563542183.155173000, 2741.469000000]: Initializing controller 'roch_sensor_controller' failed
[ERROR] [1563542184.156486, 2742.142000]: Failed to load roch_sensor_controller

And the gazebo simulation is launched:
Screenshot from 2019-07-19 15-26-56

If I run the roslaunch roch_teleop keyboard_teleop.launch , the robot doesn't move.
However, when I open the keyboard_teleop.launch:

  <node pkg="roch_teleop" type="roch_teleop_key" name="roch_teleop_keyboard"  output="screen">
    <param name="scale_linear" value="0.5" type="double"/>
    <param name="scale_angular" value="1.5" type="double"/>
 <!--   <remap from="roch_teleop_keyboard/cmd_vel" to="/roch_velocity_controller/cmd_vel"/> -->
    <remap from="roch_teleop_keyboard/cmd_vel" to="roch_velocity_smoother/raw_cmd_vel"/>
  </node>

and remove the comment:

  <node pkg="roch_teleop" type="roch_teleop_key" name="roch_teleop_keyboard"  output="screen">
    <param name="scale_linear" value="0.5" type="double"/>
    <param name="scale_angular" value="1.5" type="double"/>
	<remap from="roch_teleop_keyboard/cmd_vel" to="/roch_velocity_controller/cmd_vel"/>
    <!-- <remap from="roch_teleop_keyboard/cmd_vel" to="roch_velocity_smoother/raw_cmd_vel"/> -->
  </node>

I can move the robot using keyboard but the odometry doesn't work in Rviz. With the following configuration:
Screenshot from 2019-07-19 16-21-09

The robot and the point cloud are just rotating and the robot is static in gazebo (no movement with teleop).

Thank you in advance for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.