Install libs:
sudo apt-get install python3-rpi.gpio
Then run:
python3 test_gpio_output.py
python3 test_gpio_input.py
``
| import os | |
| import rosbag2_py | |
| import numpy as np | |
| import struct | |
| from sensor_msgs.msg import PointCloud2 | |
| from sensor_msgs_py import point_cloud2 | |
| from rclpy.serialization import deserialize_message | |
| def read_bag_convert_to_csv(bag_file, topic, output_csv): | |
| # Open ROS 2 bag |
Install libs:
sudo apt-get install python3-rpi.gpio
Then run:
python3 test_gpio_output.py
python3 test_gpio_input.py
``
| { | |
| "type": "CFG-ITEM", | |
| "items": [ | |
| { | |
| "value": 9600, | |
| "layer": 0, | |
| "action": "Set", | |
| "valueType": "U4", | |
| "requestId": "1882a918-6321-4b5f-aa26-ac4a1f98fa68", | |
| "key": "0x40520001" |
| from pathlib import Path | |
| import gpxpy | |
| import gpxpy.gpx | |
| from rosbags.highlevel import AnyReader | |
| import sys | |
| bag = sys.argv[1] | |
| gpx = sys.argv[2] |
| #include <Atom/RPI.Public/AuxGeom/AuxGeomFeatureProcessorInterface.h> | |
| #include <Atom/RPI.Public/Scene.h> | |
| void MyComponent::Activate() | |
| { | |
| auto* entityScene = AZ::RPI::Scene::GetSceneForEntityId(GetEntityId()); | |
| m_drawQueue = AZ::RPI::AuxGeomFeatureProcessorInterface::GetDrawQueueForScene(entityScene); | |
| AZ::TickBus::Handler::BusConnect(); | |
| TwistNotificationBus::Handler::BusConnect(GetEntityId()); |
| #!/usr/bin/env python | |
| # -------------------------------------------------------------------- | |
| # Simple sum of squared differences (SSD) stereo-matching using Numpy | |
| # -------------------------------------------------------------------- | |
| # Copyright (c) 2016 David Christian | |
| # Licensed under the MIT License | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.patches as patches |
| # Copyright (c) 2021 PickNik, Inc. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # * Redistributions of source code must retain the above copyright | |
| # notice, this list of conditions and the following disclaimer. | |
| # | |
| # * Redistributions in binary form must reproduce the above copyright | |
| # notice, this list of conditions and the following disclaimer in the |
Download and install "Raspberry Pi Imager" from https://www.raspberrypi.org/software/
Choose "Raspberry PI OS Lite 32" Press Ctrl+Shift+X
| <?xml version="1.0"?> | |
| <robot name="urdf_test"> | |
| <material name="darkgrey"> | |
| <color rgba="0.25 0.25 0.25 0.8"/> | |
| </material> | |
| <material name="lightgrey"> | |
| <color rgba="0.8 0.8 0.8 1.0"/> | |
| </material> | |