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

jbv's profile - activity

2020-06-23 14:22:55 -0500 received badge  Famous Question (source)
2015-10-22 21:43:13 -0500 received badge  Famous Question (source)
2015-06-30 02:15:20 -0500 received badge  Notable Question (source)
2015-06-29 02:56:03 -0500 received badge  Scholar (source)
2015-06-29 02:10:14 -0500 received badge  Popular Question (source)
2015-06-26 19:54:40 -0500 received badge  Teacher (source)
2015-06-26 19:54:40 -0500 received badge  Self-Learner (source)
2015-06-26 09:10:23 -0500 commented question rospy absolute duration bug
2015-06-26 08:44:47 -0500 asked a question rospy absolute duration bug

Hello, I use ROS hydro and I think I found an error in the code of the rospy.Duration class

When I do :

print abs(rospy.Duration.from_sec(0.5))

it prints -500000000 instead of 500000000. That's because the code only takes into account the number of seconds. cf : https://github.com/ros/genpy/blob/ind...

def __abs__(self):
    """
    Absolute value of this duration
    :returns: positive :class:`Duration`
    """
    if self.secs > 0:
        return self
    return self.__neg__()

It should be :

def __abs__(self):
    """
    Absolute value of this duration
    :returns: positive :class:`Duration`
    """
    if self.secs < 0 or (self.secs == 0 and self.nsecs<0):
        return self.__neg__()
    return self
2015-06-26 02:08:26 -0500 received badge  Notable Question (source)
2015-06-16 07:11:15 -0500 received badge  Enthusiast
2015-06-15 02:25:49 -0500 received badge  Popular Question (source)
2015-06-08 08:45:24 -0500 asked a question cob_people_detecion on Hydro can't launch node kinect_image_flip

Hello,

I downloaded and built successfully cob_people_detection for Hydro on ubuntu 12.04.5. However when I launch it, it says this error :

ERROR: cannot launch node of type [cob_image_flip/kinect_image_flip]: can't locate node [kinect_image_flip] in package [cob_image_flip]

I checked and it looks like, kinect_image_flip is now called image_flip so I changed it in "image_flip.launch" and it removed the error but it still doesn't work. I can't even see myself in the window that is opened.

I downloaded the sources from here :

  1. https://github.com/ipa-rmb/cob_people...
  2. https://github.com/ipa-rmb/cob_percep...

Thank you in advance