ROS Noetic Windows Package not found after catkin_make
I'm running ROS Noetic on Windows (not WSL) and has ROS Noetic on Raspberry Pi. I have networking working so I can type rostopic list and I see the topic from the Raspberry Pi.
I have a folder called .\ros_catkin_ws\src\picar When I run catkin_make from \ros_catkin_ws\src it seems to run without error and I see it processing all my .msg files.
But when I try to run rostopic echo /healthpub I see:
C:\Users\cjones\Documents\School\Masters Computer Science\IoT\ros_catkin_ws\src\picar\src>rostopic echo /healthpub
ERROR: Cannot load message class for [picar/Health]. Are your messages built?
Out of curiosity I ran python and import rospy works but from picar.msg import Health the module isn't found. Also roscd picar says the package isn't found. So it's Compiling but for some reason not getting registered.
@cjonesy, one possible problem is that you didn't invoke
devel\setup.bat
to merge your catkin workspace, so it wasn't visible to any ROS tools. I saw you asked the similar question here. It would be great to confirm your usage.Isn't this your own #q361870, but then in Windows?
Here's a little more background. This is a small RC car with a Raspberry PI 4 on it along with an IMU, Ultrasonic Sensor, and RGB camera. Looking into using ROS for future semesters of a Masters CS class in IoT.
Ultimately I'm trying to run rviz and ros QT on Windows for visualization of sensor data and camera feed.
I just ran devel/setup.bat and tried roscd picar again, same result. Package couldn't be found. I tried running catkin_make after I ran setup.bat, same result. I went back to #q361870 and marked it as answered.
@cjonesy, are you able to detail how to replicate the catkin workspace (or share the sources)? Also, it might be useful to share your
catkin_make
(orcatkin_make_isolated
) console logs.@Sean Yen: shouldn't @cjonesy run
call devel\setup.bat
instead of directly running it?Call
devel\setup.bat
(ordevel_isolated\setup.bat
) first and then invoking the ROS tools should just work. The workflow should be the same regardless of the platform. And if @cjonesy does the same steps on Windows as those on Linux, but it still doesn't work. Then, I am curious of @cjonesy workspace and even the build logs. There might be something else to do with that.My command line shortcut was pointing to setup.bat under /opt. So I changed that. But the target field was too long for windows so I moved the ros_catkin_ws to a shorter folder name. Interestingly I'm able to do
rosrun picar script.py
and it runs and the node will show up on the RPi when doing rosnode list.However when I run another script,
rosrun picar IMUPub.py
(publishes IMU data) and run rostopic echo /orientation on the RPi it's fine. But when I try to runrostopic echo /orientation
in Windows I get this error showing up on the RPi and no data in Windows.And while rosrun works in Windows, roscd gives me this error:
How do I post build logs? Just the output from catkin_make?