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

Wezzoid's profile - activity

2021-05-03 01:49:05 -0500 received badge  Famous Question (source)
2019-07-06 22:57:06 -0500 received badge  Famous Question (source)
2019-02-18 06:53:14 -0500 received badge  Notable Question (source)
2019-01-15 19:48:48 -0500 received badge  Popular Question (source)
2018-12-26 07:26:54 -0500 marked best answer move_base pointcloud data format

Hi I'm getting the error

[ERROR] [1545413307.824637530]: Client [/move_base] wants topic /mmWaveDataHdl/RScan to have datatype/md5sum [sensor_msgs/PointCloud/d8e9c3f5afbdd8a130fd1d2763945fca], but our version has [sensor_msgs/PointCloud2/1158d486dd51d683ce2f1be655c3c181]. Dropping connection.

My costmap_common_params.yaml has:

observation_sources: mmwave_radar

mmwave_radar: {sensor_frame: base_radar_link, data_type: PointCloud2, topic: /mmWaveDataHdl/RScan
, marking: true, clearing: true}

I submitted an issue to the github page and got told that it accepts PointCloud2 by default and the issue was closed.

When I search for this issue I find people saying it's not compatible and having to use an old EOL conversion package.

They can't both be true. Can anyone help?

2018-12-24 03:43:32 -0500 answered a question move_base pointcloud data format

False alarm - it's working

2018-12-24 03:43:10 -0500 commented question move_base pointcloud data format

Yeah it's definitely pointcloud2. I left it over weekend, started it up just now to double-check before answering - it m

2018-12-21 11:37:27 -0500 asked a question move_base pointcloud data format

move_base pointcloud data format Hi I'm getting the error [ERROR] [1545413307.824637530]: Client [/move_base] wants top

2018-12-06 08:43:37 -0500 commented question Colcon Setup?

How did you get it to work Mark? aws-robotics ROS package readmes suggest it is Kinetic compatible, but it uses colcon f

2018-12-04 09:16:26 -0500 marked best answer RViz text marker doesn't display

I am successfully using various types of visualization markers, but can't get TEXT_VIEW_FACING to work. RViz is subscribed to the topic, and the message content seems ok. RViz isn't showing any errors. Am I missing something simple or is there a problem with RViz? Using Kinetic on Ubuntu 16.

Here is the output of rostopic echo. (There is one text marker each for 4 legs, only one shown)

---
header:
  seq: 13963
  stamp:
    secs: 1541615488
    nsecs: 232728531
  frame_id: "/base_link"
ns: "markers_footforce_text"
id: 3
type: 9
action: 0
pose:
  position:
    x: 0.14822583112
    y: -0.163636099005
    z: -0.183330821392
  orientation:
    x: 0.0
    y: 0.0
    z: 0.0
    w: 1.0
scale:
  x: 0.05
  y: 0.05
  z: 0.05
color:
  r: 1.0
  g: 0.0
  b: 0.0
  a: 1.0
lifetime:
  secs: 0
  nsecs:         0
frame_locked: False
points: []
colors: []
text: "hello"
mesh_resource: ''
mesh_use_embedded_materials: False
---

update: Here is an example of a marker msg that works:

---
header:
  seq: 7019
  stamp:
    secs: 1541670264
    nsecs: 695540526
  frame_id: "/base_link"
ns: "markers_footforce"
id: 3
type: 0
action: 0
pose:
  position:
    x: 0.137246076547
    y: -0.150541167427
    z: -0.0882269625985
  orientation:
    x: 0.0
    y: -1.0
    z: 0.0
    w: 1.0
scale:
  x: 0.0925518925519
  y: 0.02
  z: 0.02
color:
  r: 0.0
  g: 1.0
  b: 0.0
  a: 1.0
lifetime:
  secs: 0
  nsecs:         0
frame_locked: False
points: []
colors: []
text: ''
mesh_resource: ''
mesh_use_embedded_materials: False
---

update: Here are my RViz startup messages:

[ INFO] [1541671551.052185041]: rviz version 1.12.16
[ INFO] [1541671551.052267087]: compiled against Qt version 5.5.1
[ INFO] [1541671551.052279569]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1541671551.746811300]: Stereo is NOT SUPPORTED
[ INFO] [1541671551.747030266]: OpenGl version: 3 (GLSL 1.3).

Last few lines from rviz -l :

[ INFO] [1541672551.298442008]: GLXWindow::create used FBConfigID = 163
[ INFO] [1541672552.074872851]: Mesh: Loading rviz_sphere.mesh.
[ INFO] [1541672552.080553706]: Texture: SelectionRect0Texture: Loading 1 faces(PF_R8G8B8A8,1x1x1) Internal format is PF_A8R8G8B8,1x1x1.
[ INFO] [1541672552.083017394]: Mesh: Loading rviz_cylinder.mesh.
[ INFO] [1541672552.083373321]: Mesh: Loading rviz_cone.mesh.
[ INFO] [1541672565.843360810]: Mesh: Loading rviz_cube.mesh.
[ INFO] [1541672567.908020785]: Font Liberation Sans using texture size 256x128
[ INFO] [1541672567.911394493]: Info: Freetype returned null for character 160 in font Liberation Sans
[ INFO] [1541672567.912111099]: Texture: Liberation SansTexture: Loading 1 faces(PF_BYTE_LA,256x128x1) Internal format is PF_BYTE_LA,256x128x1.

It's saying it couldn't find a texture from the font for the nbspace char, not that it's actually broken, right?


Update: The interactive markers tutorial demo doesn't show any text either, but works otherwise. Must be something wrong with RViz.


Update re Ogre and fonts:

wes@ubuntu:~$ sudo dpkg -l *ogre*
[sudo] password for wes:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  libogre-1.8-de <none>       <none>       (no description available)
un  libogre-1.8.0  <none>       <none>       (no description available)
ii  libogre-1.9-de 1.9.0+dfsg1- i386         3D Object-Oriented Graphics ...
(more)
2018-12-04 09:16:24 -0500 received badge  Nice Answer (source)
2018-12-04 06:55:29 -0500 received badge  Self-Learner (source)
2018-12-04 06:46:23 -0500 commented answer RViz text marker doesn't display

WSL with XMing also works

2018-12-04 06:44:31 -0500 answered a question RViz text marker doesn't display

Answering myself - hope that's ok. This is definately something to do with the way the Virtual Machine handles Ogre/Open

2018-11-16 08:46:38 -0500 received badge  Famous Question (source)
2018-11-14 12:36:35 -0500 commented answer Rviz doesn't display text marker.

I know this is an old thread, but were you using a virtual machine? I'm finding text markers work ok except when on VMWa

2018-11-14 12:33:43 -0500 commented answer RViz text marker doesn't display

VMWare and VirtualBox both seem to have the same issue

2018-11-14 05:20:17 -0500 commented answer RViz text marker doesn't display

Ugh, it works fine on a native machine. screenshot I will search for a fix or alternative.

2018-11-14 05:20:17 -0500 received badge  Commentator
2018-11-14 05:14:28 -0500 received badge  Enthusiast
2018-11-12 05:06:31 -0500 commented answer RViz text marker doesn't display

Hi Pete, my TF tree appears fine. I'm going find an Ubuntu machine that isn't a VM, to try the tutorial on and then get

2018-11-08 08:41:31 -0500 commented answer RViz text marker doesn't display

updated the main post as it's too much txt for a comment. Thanks Delb.

2018-11-08 08:41:02 -0500 edited question RViz text marker doesn't display

RViz text marker doesn't display I am successfully using various types of visualization markers, but can't get TEXT_VIEW

2018-11-08 07:16:29 -0500 commented answer RViz text marker doesn't display

purged & reinstalled ros-kinetic-rviz. Updated host video drivers. Ran VM without acceleration. Tried turning off ac

2018-11-08 07:07:13 -0500 commented question RViz text marker doesn't display

no error in the displays view. I get that warning about the font character in the console. I don't know whether that's r

2018-11-08 07:04:13 -0500 commented answer RViz text marker doesn't display

Hi Delb, thanks but as i said, it's failing with the official tutorial code, not just mine, so it isn't the code, it's s

2018-11-08 06:51:56 -0500 received badge  Notable Question (source)
2018-11-08 06:35:42 -0500 commented question RViz text marker doesn't display

Hi Delb. I initially had the text z pretty big, like 0.2 m so the word would have been bigger than the (small) robot mod

2018-11-08 06:34:34 -0500 commented question RViz text marker doesn't display

Hi Delb. I initially had the text z pretty big, like 0.2 m so the word would have been bigger than the (small) robot mod

2018-11-08 06:34:13 -0500 commented question RViz text marker doesn't display

Hi Delb. I initially had the text z pretty big, like 0.2 m so the work would have been bigger than the (small) robot mod

2018-11-08 06:00:30 -0500 edited question RViz text marker doesn't display

RViz text marker doesn't display I am successfully using various types of visualization markers, but can't get TEXT_VIEW

2018-11-08 05:40:02 -0500 edited question RViz text marker doesn't display

RViz text marker doesn't display I am successfully using various types of visualization markers, but can't get TEXT_VIEW

2018-11-08 05:38:08 -0500 received badge  Popular Question (source)
2018-11-08 04:08:04 -0500 edited question RViz text marker doesn't display

RViz text marker doesn't display I am successfully using various types of visualization markers, but can't get TEXT_VIEW

2018-11-08 03:47:44 -0500 edited question RViz text marker doesn't display

RViz text marker doesn't display I am successfully using various types of visualization markers, but can't get TEXT_VIEW

2018-11-07 12:50:10 -0500 asked a question RViz text marker doesn't display

RViz text marker doesn't display I am successfully using various types of visualization markers, but can't get TEXT_VIEW

2018-07-16 08:04:35 -0500 marked best answer custom stereo camera publisher fails mysteriously

I'm trying to make a stereo camera for visual odometry. My Python script to publish the images consistently stops after ~500 images, with no errors.

I have cameras plugged into the 2 CSI ports on the standard Raspberry Pi Compute Module breakout board. I'm using Kinetic on Raspian. I'm using the picamera library so I can access the cameras as if I was using raspivid. This brings in both cameras as one image with good sync (better than 1/60 sec anyway) which i then split up and publish using sensor_msgs. I think sensor_msgs is the only way to do it as I need to set identical timestamps, but I'm a novice.

Also the publish rate is pretty slow. When I ask for 20 FPS I get about 5. message queue is set to 10. Would that be a problem? I suspect I'm going to have to redo it in C++ but I'd rather avoid that because python is quick to use.

Can someone tell me what I'm doing wrong, or a better way?

#!/usr/bin/env python

# picamera stereo ROS node using dual CSI Pi CS3 board
# Wes Freeman 2018
# modified from code by Adrian Rosebrock, pyimagesearch.com
# and jensenb, https://gist.github.com/jensenb/7303362

from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import numpy as np
import cv2
import rospy
from sensor_msgs.msg import CameraInfo, Image
import yaml

# cam resolution
# x must be multiple of 128: 640, 512, 384
res_x = 384 # per camera
res_y = 288

# initialize the camera
print("Init camera...")
camera = PiCamera(stereo_mode = 'side-by-side',stereo_decimate=False)
camera.resolution = (res_x*2, res_y)
camera.framerate = 5
#camera.exposure_mode = 'sports'
camera.exposure_mode = 'antishake'
camera.video_stabilization = True
camera.awb_mode = 'tungsten'

rawCapture = PiRGBArray(camera, size=(res_x*2, res_y)) # picamera struct, a numpy array?

#setup the publishers
print("init publishers")
# queue_size should be roughly equal to FPS?
left_img_pub = rospy.Publisher('left_camera/image_color', Image, queue_size=10)
right_img_pub = rospy.Publisher('right_camera/image_color', Image, queue_size=10)
rospy.init_node('stereo_pub')

print("Setup done, entering main loop")
framecount=0
# capture frames from the camera
try:
    for frame in camera.capture_continuous(rawCapture, format="rgb", use_video_port=True):
        framecount +=1
        # grab the raw NumPy array representing the image and split it
        left_image = frame.array[:, :res_x, :]
        right_image = frame.array[:, res_x+1:, :]

        # clear the stream in preparation for the next frame
        rawCapture.truncate(0)

        stamp = rospy.Time.now()

        left_img_msg = Image()
        left_img_msg.height = res_y
        left_img_msg.width = res_x
        left_img_msg.step = res_x*3 # bytes per row: pixels * channels * bytes per channel (1 normally)
        left_img_msg.encoding = 'rgb8'
        left_img_msg.header.frame_id = 'image_raw'
        left_img_msg.header.stamp = stamp
        left_img_msg.data = left_image.flatten().tolist()

        right_img_msg = Image()
        right_img_msg.height = res_y
        right_img_msg.width = res_x
        right_img_msg.step = res_x*3
        right_img_msg.encoding = 'rgb8'
        right_img_msg.header.frame_id = 'image_raw'
        right_img_msg.header.stamp = stamp
        right_img_msg.data = right_image.flatten().tolist()

        #publish the image pair
        left_img_pub.publish(left_img_msg)
        right_img_pub.publish(right_img_msg)

        print("published frame: ", framecount)           



except rospy.ROSInterruptException:
    camera.close()
    pass

Revised code after advice in this thread:

#!/usr/bin/env python

# picamera stereo ROS node using dual CSI ...
(more)
2018-06-03 21:04:39 -0500 received badge  Self-Learner (source)
2018-06-03 21:04:39 -0500 received badge  Teacher (source)
2018-06-03 20:57:58 -0500 received badge  Notable Question (source)
2018-06-03 12:27:38 -0500 answered a question custom stereo camera publisher fails mysteriously

Doing antishake, video stabilisation and AWB all at once makes it unstable for some reason. As for the speed issues, it'

2018-06-03 12:23:03 -0500 commented question custom stereo camera publisher fails mysteriously

fixed the speed issue. will put an answer in

2018-06-03 03:13:55 -0500 received badge  Popular Question (source)
2018-06-02 18:04:35 -0500 commented question custom stereo camera publisher fails mysteriously

It now works reliably but it's really slow. The publishing framerate is 10 when it should be 20. It's only using about 6

2018-06-02 15:43:06 -0500 edited question custom stereo camera publisher fails mysteriously

custom stereo camera publisher fails mysteriously I'm trying to make a stereo camera for visual odometry. My Python scri

2018-06-02 15:43:06 -0500 received badge  Editor (source)
2018-06-02 12:26:25 -0500 commented question custom stereo camera publisher fails mysteriously

Thanks gvdhoorn! You're right it's happening earlier than the publisher. One of the camera options must have caused it.

2018-06-02 12:21:06 -0500 edited question custom stereo camera publisher fails mysteriously

custom stereo camera publisher fails mysteriously I'm trying to make a stereo camera for visual odometry. My Python scri

2018-06-02 07:20:09 -0500 asked a question custom stereo camera publisher fails mysteriously

custom stereo camera publisher fails mysteriously I'm trying to make a stereo camera for visual odometry. My Python scri