ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

badrobit's profile - activity

2022-09-09 07:00:57 -0500 marked best answer Using RPM as a form of Wheel Odometry

I am currently working on trying to create some form of wheel odometry to be used in our system to help determine the pose of our robot. There are no encoders on the wheels but the motor that is used to drive the wheels does report its RPM. I am wondering if there is anyway to use this as an input to the robot_localization node?

2019-05-30 07:31:33 -0500 received badge  Nice Question (source)
2018-10-28 04:51:44 -0500 received badge  Famous Question (source)
2018-10-28 04:51:44 -0500 received badge  Popular Question (source)
2018-10-28 04:51:44 -0500 received badge  Notable Question (source)
2018-09-27 10:12:48 -0500 received badge  Famous Question (source)
2018-08-29 09:52:22 -0500 received badge  Famous Question (source)
2018-07-30 05:58:50 -0500 received badge  Taxonomist
2018-06-15 08:42:38 -0500 received badge  Good Question (source)
2018-03-09 06:36:23 -0500 received badge  Notable Question (source)
2018-03-06 13:40:33 -0500 received badge  Famous Question (source)
2018-03-06 13:40:33 -0500 received badge  Notable Question (source)
2018-01-28 17:16:04 -0500 received badge  Notable Question (source)
2017-07-25 12:21:30 -0500 received badge  Popular Question (source)
2017-06-10 12:20:17 -0500 received badge  Famous Question (source)
2017-01-27 15:45:50 -0500 received badge  Famous Question (source)
2016-12-19 10:38:14 -0500 received badge  Nice Question (source)
2016-12-08 15:07:56 -0500 asked a question Unable to validate URDF file

I am trying to validate this basic URDF file:

<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="rover">
</robot>

When using XML Copy Editor I am able to have it pass the well-formed check but when I try to validate it I get the following error:

Error at line 2, column 65: no declaration found for element 'robot'

Is there something anyone can see in this basic URDF file that is invalid or why it is unable to find the element for robot?

2016-10-27 04:06:39 -0500 received badge  Notable Question (source)
2016-10-07 03:34:03 -0500 received badge  Popular Question (source)
2016-10-03 22:39:55 -0500 received badge  Famous Question (source)
2016-09-19 15:13:53 -0500 received badge  Student (source)
2016-08-03 10:01:31 -0500 received badge  Notable Question (source)
2016-07-15 04:31:56 -0500 received badge  Famous Question (source)
2016-07-09 19:22:18 -0500 received badge  Famous Question (source)
2016-06-23 05:10:22 -0500 received badge  Notable Question (source)
2016-06-18 22:00:44 -0500 asked a question Point Cloud Registration Problems

I am currently working with PCL and a 360-degree point scanner to create maps. I am currently trying to localize them using PCL's ICP to attempt to register the scans. The scans were taken roughly 15 - 20 meters apart but I am getting transforms that look like this from the pcl::GeneralizedIterativeClosestPoint

The point clouds being aligned are created by aligning a series of scans from a spinning lidar while the robot sits still.

Transform Code:

pcl::GeneralizedIterativeClosestPoint< PointT, PointT > icp;
icp.setTransformationEpsilon( 0.00001 );
icp.setMaxCorrespondenceDistance( 1.0 );
icp.setMaximumIterations( 10 );          
icp.setRANSACIterations(10);              
icp.setMaximumOptimizerIterations( 20 ); 

icp.setInputSource(i_query);
icp.setInputTarget(i_reference);

PointCloud temp;
icp.align( temp );

Transform:

0.999574 0.0244488 -0.015959 -0.0191285
-0.0247078 0.999563 -0.0162421 0.0443592
0.015555 0.0166295 0.999741 0.12248
0 0 0 1

This doesn't look right to me as I would expect a much larger offset in the x and y components of the transform. Any suggestions would be appreciated.

2016-06-02 01:23:45 -0500 received badge  Famous Question (source)
2016-05-30 12:58:52 -0500 received badge  Notable Question (source)
2016-05-25 03:45:45 -0500 received badge  Popular Question (source)
2016-05-24 13:19:15 -0500 asked a question Import issues in ROS Kinetic & RQT

I am writing an RQT plugin and when I attempt to build it there are no warnings but when the system attempts to load the plugin I get the following output:

It seems like it is missing the QWidget in the python_qt_binding

 RosPluginProvider.load(juno_safe_button/juno_safe_button) exception raised in __builtin__.__import__(juno_safe_button.juno_safe_button, [JunoSafeButton]):
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 77, in load
    module = __builtin__.__import__(attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
  File "/home/mroscoe/juno_ws/install/lib/python2.7/dist-packages/juno_safe_button/juno_safe_button.py", line 7, in <module>
    from python_qt_binding.QtGui import QWidget
ImportError: cannot import name QWidget

PluginManager._load_plugin() could not load plugin "juno_safe_button/juno_safe_button":
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 99, in load
    self._load()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
    self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
    return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 83, in load
    raise e
ImportError: cannot import name QWidget
2016-05-16 10:01:48 -0500 marked best answer Computing Odometry from two velocities

I am looking to determine how to compute odometry for my robot. It is a skid-steer platform with one motor on each side (left/right) and each side reports an RPM which is then turned into a velocity.

I have not been able to find any examples of how to use these two velocities to computer the linear and angular components of the twist portion of my odometry message. I have found a way to compute the change in x & y given an angle theta as shown in the RobotSetup/Odom tutorial but I don't know how to get to the theta value.

Any help would be appreciated!

2016-05-12 04:16:17 -0500 received badge  Popular Question (source)
2016-05-07 10:29:10 -0500 received badge  Popular Question (source)
2016-04-21 09:26:33 -0500 received badge  Notable Question (source)