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

Unable to load msg [sensor_msgs/]

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

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 -0500

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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 229 times

Last updated: Nov 07 '21