New answers tagged

0 votes
Accepted

Who has gotten WiringPi working in a ROS 2 C++ node? Want to control GPIO on Raspberry Pi 4 running Ubuntu 22

Put the wiringPiSetup() inside main and before spinning the node (rclcpp::spin(node)). It ...
Yato's user avatar
  • 11
1 vote
Accepted

Got Pi5 w PiOS Bookworm, Want ROS 2 Humble Desktop Docker with Nav2 and more

You create a dockerfile to build your own docker image starting from the ROS 2 Humble container. Such a dockerfile could look something like this: ...
proan's user avatar
  • 121
0 votes

Low-profile durable electrical connections between microcontrollers and SBC

Simple solution would be a 10(or more) pin IDC header and ribbon cable with a connector attached where needed to access each of the sensor boards. I assume the actual number of these boards is low (or ...
billy's user avatar
  • 306
1 vote

How to use Raspberry Pi GPIO ports in ROS 2?

Your question about using Rasperry Pi GPIO ports in ROS 2 is an example of combining hardware controller with robotics software frameworks. I mean they are separate, but can be integrated to serve ...
Robotawi's user avatar
  • 123
0 votes
Accepted

FastDDS: demo_nodes_cpp between WSL2 and Raspberry Pi

ROS 2 uses multicast packets for discovery unless you set it up differently. The multicast packets may not be routed across your subnet, which is something you can check in your router configuration. ...
proan's user avatar
  • 121
0 votes

How to use Raspberry Pi GPIO ports in ROS 2?

Pi GPIO library doesn't interact with ROS2 in any way I know of. Just use it as you would any library. The Pi GPIO deamon doesn't seem to impact ROS2 function either.
billy's user avatar
  • 306
0 votes

How to copy the Python variable to inside another class?

import rclpy from std_msgs.msg import Int32 from pigpio_encoder.rotary import Rotary def main(args=None): rclpy.init(args=args) ...
Russ76's user avatar
  • 36
1 vote

How to copy the Python variable to inside another class?

EDIT after seeing the formatted code: In MinimalPublisher.ticks = counter you are referencing a Class variable. So to make it work you can make 'ticks' a Class ...
billy's user avatar
  • 306

Top 50 recent answers are included