New answers tagged raspberry-pi
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 ...
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:
...
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 ...
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 ...
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.
...
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.
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)
...
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 ...
Top 50 recent answers are included
Related Tags
raspberry-pi × 221arduino × 46
quadcopter × 28
mobile-robot × 27
ros × 26
motor × 18
python × 18
control × 16
pid × 12
irobot-create × 12
serial × 10
slam × 9
stepper-motor × 9
ros2 × 9
robotic-arm × 8
microcontroller × 8
servomotor × 8
electronics × 8
ros-humble × 8
sensors × 7
wheeled-robot × 7
cameras × 6
battery × 6
power × 6
rcservo × 6