Hi,
some time ago I created a simple ROS environment for controlling pidog.
I’m now looking at creating something much more complex and offloading some of the behavioral/AI workload to a pironman5 as a set of distributed ros nodes to facilitate this extra complexity.
The project was my first foray into ROS and python, and in hindsight they were naively written (inefficient, difficult to maintain etc.) So I wish to rewrite most/all of them to start my new project, and I’m looking around at what others have done just to get some ideas and possible alternative methods.
I noticed that Sunfounder created a couple of hat nodes about 2 years ago here
I’ve downloaded this package and it builds fine via colcon,
>:ros2 pkg executables robot_hat_ros
robot_hat_ros grayscale_3ch
robot_hat_ros mcu
robot_hat_ros test
robot_hat_ros ultrasonic
however I get a runtime error
from robot_hat_ros.srv import RegisterADC, RemoveADC ModuleNotFoundError: No module named 'robot_hat_ros.srv
For reference, Cmakelists.txt is copied below from the above package
find_package(geometry_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${robot_hat_ros}
“srv/RegisterADC.srv”
“srv/RemoveADC.srv”
)
but I don’t have those ADC service files to generate robot_hat_ros.srv
I just wondered if anyone at Sunfounder still had these file to nudge me in the right direction!
Thanks