Ask Your Question
0

Unable to load msg [sensor_msgs/]

asked 2021-11-07 11:53:56 -0600

bhomaidan gravatar image

when I use the instruction rosmsg show sensor_msgs/ I get the following weird error:

Unable to load msg [sensor_msgs/]: Cannot locate message [] in package [sensor_msgs] with paths [['/opt/ros/noetic/share/sensor_msgs/msg']]

but when I type ls /opt/ros/noetic/share/sensor_msgs/msg I get the following output:

BatteryState.msg     Illuminance.msg       JoyFeedback.msg    MultiDOFJointState.msg  PointCloud.msg        Temperature.msg
CameraInfo.msg       Image.msg             Joy.msg            MultiEchoLaserScan.msg  PointField.msg        TimeReference.msg
ChannelFloat32.msg   Imu.msg               LaserEcho.msg      NavSatFix.msg           Range.msg
CompressedImage.msg  JointState.msg        LaserScan.msg      NavSatStatus.msg        RegionOfInterest.msg
FluidPressure.msg    JoyFeedbackArray.msg  MagneticField.msg  PointCloud2.msg         RelativeHumidity.msg

can you please tell me what is my mistake? thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-11-07 13:15:31 -0600

gvdhoorn gravatar image

rosmsg show is intended to show you the contents of a single message definition, not the files inside a directory.

edit flag offensive delete link more

Comments

@gvdhoorn True, I should hit Tab instead to see the messages inside as he did in the Tutorial

bhomaidan gravatar image bhomaidan  ( 2021-11-07 13:38:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-11-07 11:53:56 -0600

Seen: 19 times

Last updated: Nov 07 '21