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

SouLeo's profile - activity

2020-02-25 09:58:34 -0500 asked a question Gazebo Sim controlled by Amazon Mechanical Turk

Gazebo Sim controlled by Amazon Mechanical Turk Hello, I'm very new to Amazon Mechanical Turk (AMT) and cloud services.

2020-02-25 09:56:31 -0500 asked a question Gazebo Simulation controlled by Amazon Mechanical Turker

Gazebo Simulation controlled by Amazon Mechanical Turker Hello, I'm very new to Amazon Mechanical Turk (AMT) and cloud

2019-09-16 19:47:46 -0500 received badge  Nice Question (source)
2019-09-16 16:46:15 -0500 received badge  Famous Question (source)
2019-09-10 11:17:07 -0500 received badge  Notable Question (source)
2019-09-07 23:45:30 -0500 received badge  Popular Question (source)
2019-09-07 15:44:32 -0500 received badge  Student (source)
2019-09-06 11:09:43 -0500 commented answer Issues Building ROS2: Dashing Python Package

Thank you so much! This solved my problem!

2019-09-06 11:09:13 -0500 marked best answer Issues Building ROS2: Dashing Python Package

Hello,

I've tried following this tutorial page (https://index.ros.org//doc/ros2/Tutor...) to build my own python package for ROS2 Dashing on Ubuntu 18.04 (bionic), but I'm running into issues.

Here is a link to my package: https://github.com/SouLeo/ROS2_AllenN... It includes my setup.cfg, setup.py, and package.xml.

My issue is that, even though I can build successfully with

colcon build --symlink-install

after sourcing with

source ~/ws/install/setup.bash

I can't run

ros2 run temoto_parser srl_test

Instead I get an error:

Package 'temoto_parser' not found

Any help at all would be greatly appreciated. Thanks!

2019-09-06 10:49:34 -0500 asked a question Issues Building ROS2: Dashing Python Package

Issues Building ROS2: Dashing Python Package Hello, I've tried following this tutorial page (https://index.ros.org//doc

2019-02-11 19:40:01 -0500 received badge  Famous Question (source)
2019-02-11 19:40:01 -0500 received badge  Notable Question (source)
2018-05-31 18:05:56 -0500 commented answer sensor_msgs.msg Image type value error. "Not a message data class"

done! (I think)

2018-05-31 18:05:08 -0500 marked best answer sensor_msgs.msg Image type value error. "Not a message data class"

I'm getting a value error when trying to run this code:

front_image_pub = rospy.Publisher('/front_camera/image_raw', Image, queue_size=10)

The precise error is:

Traceback (most recent call last):
  File "/home/nrgadmin/catkin_ws/src/vr_ui/src/playback.py", line 80, in <module>
    main()
  File "/home/nrgadmin/catkin_ws/src/vr_ui/src/playback.py", line 67, in main
    front_image_pub = rospy.Publisher('/front_camera/image_raw', Image, queue_size=10) 
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 842, in __init__
    super(Publisher, self).__init__(name, data_class, Registration.PUB)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 144, in __init__
    raise ValueError("data_class [%s] is not a message data class"%data_class.__class__.__name__)
ValueError: data_class [type] is not a message data class

So the fun thing about this error, is that when I substitue the Image type with any of the other sensor_msgs.msg types (such as Temperature, CompressedImage, or Joy) I don't have any error at all.

Here's a link to the full code: https://github.com/SouLeo/360_lab_visualization/blob/master/src/playback.py

My package.xml is here: https://github.com/SouLeo/360_lab_visualization/blob/master/package.xml

My CMakeList is here: https://github.com/SouLeo/360_lab_visualization/blob/master/CMakeLists.txt

I'm so sorry for being dumb, but I seriously don't understand why some sensor_msg topics work and then Image doesn't.

Other things I have tried include:

  1. Clean building my vr_ui package
  2. verifying my package.xml and cmake list included sensor_msgs.msg dependency
2018-05-31 18:05:08 -0500 received badge  Scholar (source)
2018-05-31 18:04:37 -0500 received badge  Popular Question (source)
2018-05-31 17:02:02 -0500 commented answer sensor_msgs.msg Image type value error. "Not a message data class"

This is brilliant, and I can’t believe I didnt catch this. Thank you so so much!!

2018-05-31 17:01:15 -0500 received badge  Supporter (source)
2018-05-31 16:48:42 -0500 asked a question sensor_msgs.msg Image type value error. "Not a message data class"

sensor_msgs.msg Image type value error. "Not a message data class" I'm getting a value error when trying to run this cod