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

unable to load msg: invalid name

asked 2017-01-08 06:05:17 -0500

hvn gravatar image

Hi,

Using Ubuntu 16.04, ROS Kinetic and Python, I've created a msg in ~/catkin_ws/src/roboti_pi/msg: Num.msg with content:

int32[] data

My code to use this message:

a = Num() a.data = [1, 2, 3]

This somehow gives an error for Num() so from ~/catkin_ws, I checked as shown at http://wiki.ros.org/ROS/Tutorials/Cre... with "rosmsg show src/roboti_pi/msg/Num and the result is

unable to load msg [src/roboti_pi/msg/Num]: invalid name [src/roboti_pi/msg/Num]

But what's invalid about it?

Thanks,

hvn

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-08 06:07:32 -0500

NEngelhard gravatar image

updated 2017-01-08 13:49:02 -0500

ahendrix gravatar image

It should be rosmsg show robot_pi/Num

edit flag offensive delete link more

Comments

Thank you! This works.

hvn gravatar image hvn  ( 2017-01-08 06:13:40 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-08 06:05:17 -0500

Seen: 923 times

Last updated: Jan 08 '17