Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Newans joshnewans

  • Newcastle, Australia
View GitHub Profile
@joshnewans
joshnewans / example_robot.urdf.xacro
Last active Sep 18, 2021
ROS Transform Gripper Example URDF
View example_robot.urdf.xacro
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="robot">
<material name="grey">
<color rgba="0.2 0.2 0.2 1"/>
</material>
<material name="white">
<color rgba="1 1 1 1"/>
</material>
@joshnewans
joshnewans / robot_state_publisher.launch.py
Created Sep 10, 2021
Simple Robot State Publisher Launch File
View robot_state_publisher.launch.py
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch_ros.actions import Node
import xacro
def generate_launch_description():
# Specify the name of the package and path to xacro file within the package