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

eric-wieser's profile - activity

2022-10-06 08:43:34 -0500 received badge  Great Answer (source)
2021-08-22 16:54:20 -0500 received badge  Good Answer (source)
2021-04-27 07:59:28 -0500 received badge  Famous Question (source)
2020-08-21 04:44:48 -0500 received badge  Nice Answer (source)
2020-01-03 09:37:06 -0500 received badge  Famous Question (source)
2018-04-06 01:38:18 -0500 received badge  Notable Question (source)
2018-03-28 13:52:50 -0500 commented question Can I detect the currently active nodelet?

The problem is, then I have to pass it all the way down to foo - I don't want to make a huge mess of my API just to get

2018-03-28 13:30:26 -0500 received badge  Popular Question (source)
2018-03-28 13:16:17 -0500 received badge  Famous Question (source)
2018-03-28 13:16:17 -0500 received badge  Notable Question (source)
2018-03-28 12:41:30 -0500 edited question Can I detect the currently active nodelet?

Can I detect the currently active nodelet? I have a helper function that I want to calls NODELET_INFO within: void foo(

2018-03-28 12:41:03 -0500 commented question Can I detect the currently active nodelet?

Not so much the caller of foo, but the nodelet / callback queue which the current callback is being run by

2018-03-27 19:04:56 -0500 asked a question Can I detect the currently active nodelet?

Can I detect the currently active nodelet? I have a helper function that I want to calls NODELET_INFO within: void foo(

2018-03-20 10:00:22 -0500 received badge  Necromancer (source)
2017-04-03 07:55:48 -0500 received badge  Necromancer (source)
2017-04-03 07:55:48 -0500 received badge  Teacher (source)
2016-07-07 03:15:04 -0500 received badge  Notable Question (source)
2016-04-20 12:20:43 -0500 commented question No display on rviz screen

@rnunziata: I'm using a VM and having this problem. Any recommendations?

2016-04-11 21:35:18 -0500 answered a question RVIZ Interactive Markers - color change runtime

A solution that worked for me was to just clear all interactive markers and reinsert them all with the new colors. Surprisingly, this works even while a marker is being dragged in rviz

2016-04-11 21:17:15 -0500 commented answer How do I convert an ROS image into a numpy array?

This package is now published!

2016-04-11 21:17:15 -0500 received badge  Commentator
2016-04-04 16:21:44 -0500 commented question In rviz, how to change the color of Interactive Marker at Runtime
2016-04-04 16:21:34 -0500 received badge  Citizen Patrol (source)
2016-04-03 04:58:10 -0500 received badge  Popular Question (source)
2016-04-02 18:28:11 -0500 received badge  Famous Question (source)
2016-04-02 18:27:45 -0500 received badge  Popular Question (source)
2016-04-02 18:26:39 -0500 asked a question How can i check the status of my package submission?

I submitted the package here

It's passed some jenkins builds here

However, it doesn't show up as a package on the wiki, or in the software list.

Is there a step that I've missed? Or does the process take longer than a few days?

2016-04-02 14:37:21 -0500 commented answer rviz black screen

link for the lazy

2016-03-17 10:16:57 -0500 commented question what is the right way to inverse a transform in python

setattr(x, y) should always be preferred over x.__setattr__(y)

2016-03-16 19:53:57 -0500 asked a question What does nav_msgs/GridCells represent?

"an array of cells in a 2D grid" isn't a particularly clear description.

  1. What defines the spacing of the grid?
  2. Is the array one or two dimensional? So many ros types use a 1D array to represent a 2D grid, so the type alone is not sufficient documentation
  3. What does cells[i] represent?
  4. Do all cells have to be XY-planar?
  5. Do all cells have to be planar at all?
  6. Do the cells even have to align to a grid?
  7. is cell_width measured from the center or the corner?
2016-03-16 15:49:29 -0500 commented question read bag messages as numpy in python

Why is this question closed? @tfoote. I have this problem, and would like a solution

2016-03-16 15:49:18 -0500 received badge  Supporter (source)
2016-03-10 23:50:39 -0500 commented question Printing and searching python namespaces from rospy.get_param()

Where is the official source for the nxt packages? The source link on the wiki page is dead

2016-03-10 23:36:45 -0500 answered a question Printing and searching python namespaces from rospy.get_param()

for c in config iterates over the keys of the config, not the values. I think you want:

host = rospy.get_param("~host", None)
sock = nxt.locator.find_one_brick(host)
b = sock.connect()

config = rospy.get_param("~"+ns)
components = []
for k, c in config.items():
    # do something with k - it might be useful
    rospy.loginfo("Creating %s with name %s on %s",c['type'],c['name'],c['port'])
    if c['type'] == 'motor':
        components.append(Motor(c, b))
    elif c['type'] == 'touch':
        components.append(TouchSensor(c, b))
    elif c['type'] == 'ultrasonic':
        components.append(UltraSonicSensor(c, b))
    elif c['type'] == 'color':
        components.append(ColorSensor(c, b))
    elif c['type'] == 'intensity':
        components.append(IntensitySensor(c, b))
    elif c['type'] == 'gyro':
        components.append(GyroSensor(c, b))
    elif c['type'] == 'accelerometer':
        components.append(AccelerometerSensor(c, b))
    else:
        rospy.logerr('Invalid sensor/actuator type %s'%c['type'])
2016-03-10 23:35:35 -0500 commented question Printing and searching python namespaces from rospy.get_param()

What does print(config) give you?

2016-03-10 19:43:38 -0500 received badge  Student (source)
2016-03-09 09:53:32 -0500 received badge  Enthusiast
2016-02-29 17:18:52 -0500 commented answer What does `Int32MultiArray.layout.data_offset` mean

I've submitted an issue

2016-02-29 12:43:59 -0500 received badge  Notable Question (source)
2016-02-29 12:43:59 -0500 received badge  Popular Question (source)
2016-02-27 01:16:28 -0500 commented answer How do I convert an ROS image into a numpy array?

@ahendrix: The package name above is a link to the github repo, containing both of those things

2016-02-27 00:53:03 -0500 asked a question What does `Int32MultiArray.layout.data_offset` mean

Here's the contents of Int32MultiArray.msg:

# Please look at the MultiArrayLayout message definition for
# documentation on all multiarrays.

MultiArrayLayout  layout        # specification of data layout
int32[]           data          # array of data

And here's the contents of MultiArrayLayout

# The multiarray declares a generic multi-dimensional array of a
# particular data type.  Dimensions are ordered from outer most
# to inner most.

MultiArrayDimension[] dim # Array of dimension properties
uint32 data_offset        # padding bytes at front of data                         (A)

# Accessors should ALWAYS be written in terms of dimension stride
# and specified outer-most dimension first.
# 
# multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]    (B)
<snip>

Uh oh - contradiction! Is .layout.data_offset the offset in bytes (A) or the offset in words (B)? If the former, how are we supposed to adjust for something unaligned like data_offset = 3?

2016-02-27 00:53:03 -0500 commented answer How do I convert an ROS image into a numpy array?

But data.data will still be a 1d array of bytes, not a 3d image array of the right type

2016-02-27 00:53:02 -0500 answered a question How do I convert an ROS image into a numpy array?

I've thrown together a package that tries to solve the "How can I convert ROS's <X> into a numpy array" class of problems: ros_numpy. Using this, the solution becomes:

arr = ros_numpy.numpify(img_msg)