Ask Your Question

Andrzej Pronobis's profile - activity

2016-07-26 12:07:23 -0500 received badge  Supporter (source)
2014-11-06 07:43:39 -0500 received badge  Famous Question (source)
2014-07-28 09:32:18 -0500 received badge  Good Question (source)
2014-07-24 12:57:42 -0500 received badge  Famous Question (source)
2014-07-23 14:45:32 -0500 marked best answer ROSCONSOLE_FORMAT not working in ROSPY on Hydro

I tried to use ROSCONSOLE_FORMAT as shown in Console Output Formatting on rosconsole wiki.

I configured my .bashrc as shown below:

source /opt/ros/hydro/setup.bash 
source ~/myproject/devel/setup.bash
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=<removed_link>
export ROBOT=sim
export ROSCONSOLE_FORMAT='[${severity}] [${node}@${function}:${line}]: ${message}'

For C++ I get expected outputs. However for any python program, for example

#!/usr/bin/env python
# license removed for brevity
import rospy
from std_msgs.msg import String

def talker():
    # pub = rospy.Publisher('chatter', String, queue_size=10)
    rospy.init_node('talker', anonymous=True)
    r = rospy.Rate(1)  # 10hz
    while not rospy.is_shutdown():
        # str = "hello world %s" % rospy.get_time()
        rospy.loginfo("Hello World!")
        # pub.publish(str)

if __name__ == '__main__':
    except rospy.ROSInterruptException:

I get unformatted outputs like:

mjyc@ubuntu:~$ python
[INFO] [WallTime: 1405812621.854884] Hello World!
[INFO] [WallTime: 1405812622.856649] Hello World!
[INFO] [WallTime: 1405812623.856340] Hello World!
[INFO] [WallTime: 1405812624.856789] Hello World!
[INFO] [WallTime: 1405812625.855262] Hello World!

Anybody has any clue?

I'm on Ubuntu 12.04 and using hydro.

2014-07-23 14:45:29 -0500 received badge  Nice Question (source)
2014-07-22 20:54:44 -0500 received badge  Scholar (source)
2014-07-22 20:54:40 -0500 commented answer ROSCONSOLE_FORMAT not working in ROSPY on Hydro

Thanks a lot Niko for a very informative answer!

2014-07-22 19:09:46 -0500 received badge  Notable Question (source)
2014-07-22 14:27:37 -0500 commented question help in cmake for qt ros

No solution so far unfortunately. This warning appears for any package using QT and MOC, including the standard ROS hydro packages.

2014-07-22 14:26:39 -0500 commented answer help in cmake for qt ros

Is that the same problem indeed? I cannot see any reference to the warning there?

2014-07-21 14:55:03 -0500 received badge  Popular Question (source)
2014-07-20 09:53:17 -0500 received badge  Student (source)
2014-05-05 18:21:45 -0500 received badge  Enthusiast
2014-05-01 16:24:03 -0500 answered a question Can material colors be applied to Collada (.dae) meshes?

For those who still have that problem (as I did after exporting my blender file to Collada), the trick is to make sure that ambient in the material in the collada file is set properly. It should look like this:

  <color sid="ambient">0.1 0.1 0.1 1</color>
2014-05-01 16:22:44 -0500 received badge  Popular Question (source)
2014-05-01 16:22:44 -0500 received badge  Notable Question (source)
2014-03-08 14:16:30 -0500 asked a question Error in depth perception using Asus Xtion


I'm trying to understand why there is such a large error in depth perception from my Asus Xtion sensor when a flat surface is being observed. When I point the sensor at a flat wall 2m away, the pointcloud visualized in RViz and viewed from the top will be a curve instead of a line (the problem is quite noticeable). Why would that be the case? What could be the solution?

Btw. calibration/rectification does not seem to make much of a difference.