Skip to content

Commit

Permalink
Imported upstream version '1.0.0' of 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaltovski committed Jul 25, 2024
1 parent 4932592 commit c42af24
Show file tree
Hide file tree
Showing 59 changed files with 4,046 additions and 752 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default all changes will request review from:
* @clearpathrobotics/clearpath-platform-team
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug Report
about: Provide a report for that the issue is
title: ''
labels: bug
assignees: clearpathrobotics/clearpath-platform-team

---

**Please provide the following information:**
- OS: (e.g. Ubuntu 22.04)
- ROS 2 Distro: (e.g. Humble)
- Built from source or installed:
- Package version: (if from repository, give version from `sudo dpkg -s ros-$ROS_VERSION-puma-motor-driver`, if from source, give commit hash)
- Real hardware:

**Expected behaviour**
A clear and concise description of what you expected to happen.

**Actual behaviour**
A clear and concise description of what you encountered.

**To Reproduce**
Provide the steps to reproduce:
1. run something
2. launch something else
3. see the error


**Other notes**
Add anything else you thing is important.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Provide context for the feature you are requesting
title: ''
labels: enhancement
assignees: clearpathrobotics/clearpath-platform-team

---

**Describe the the feature you would like**
A clear and concise description of what you want to happen.

**Other notes**
Add anything else you thing is important.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: puma_motor_driver_ci

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *" # every day at midnight

jobs:
puma_motor_driver_osrf_industrial_ci:
name: Humble OSRF Industrial
strategy:
matrix:
env:
- {ROS_REPO: testing, ROS_DISTRO: humble, ROSDEP_SKIP_KEYS: "micro_ros_agent sevcon_traction umx_driver valence_bms_driver"}
- {ROS_REPO: main, ROS_DISTRO: humble, ROSDEP_SKIP_KEYS: "micro_ros_agent sevcon_traction umx_driver valence_bms_driver"}
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: 'ros-industrial/industrial_ci@master'
env: ${{matrix.env}}
puma_motor_driver_cpr_ci:
name: Humble Clearpath Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- name: clearpath-package-server
run: |
sudo apt install wget
wget https://packages.clearpathrobotics.com/public.key -O - | sudo apt-key add -
sudo sh -c 'echo "deb https://packages.clearpathrobotics.com/stable/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/clearpath-latest.list'
sudo apt-get update
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: humble
package-name: |
clearpath_diagnostics
clearpath_generator_robot
puma_motor_driver
clearpath_sensors
puma_motor_driver_src_ci:
name: Humble Clearpath Source
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: humble
package-name: |
clearpath_diagnostics
clearpath_generator_robot
puma_motor_driver
clearpath_sensors
vcs-repo-file-url: dependencies.repos
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
puma_motor_driver [![Build Status](https://travis-ci.org/clearpathrobotics/puma_motor_driver.svg?branch=master)](https://travis-ci.org/clearpathrobotics/puma_motor_driver)
puma_motor_driver
=================

A socketcan-based ROS driver for the Puma, a brushed DC motor driver based on the BDC-RDK24 kit from TI.

28 changes: 28 additions & 0 deletions clearpath_socketcan_interface/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Changelog for package clearpath_socketcan_interface
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1.0.0 (2024-07-25)
------------------
* Deleted the CHANGELOG
* Version match to puma_motor_driver
* Renamed socketcan_interface to clearpath_socket_interface
* Contributors: Luis Camero

0.3.1 (2020-11-23)
------------------

0.3.0 (2020-11-12)
------------------

0.2.1 (2019-11-22)
------------------

0.2.0 (2019-09-03)
------------------

0.1.1 (2015-11-20 15:35)
------------------------

0.1.0 (2015-11-20 09:03)
------------------------
146 changes: 146 additions & 0 deletions clearpath_socketcan_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
cmake_minimum_required(VERSION 3.5)
project(clearpath_socketcan_interface)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 14)
endif()

find_package(ament_cmake REQUIRED)
find_package(pluginlib REQUIRED)
find_package(console_bridge_vendor REQUIRED)
find_package(Boost REQUIRED
COMPONENTS
chrono
system
thread
)
find_package(Threads REQUIRED)

include_directories(include
${Boost_INCLUDE_DIRS}
)

if(NOT TARGET console_bridge::console_bridge)
add_library(console_bridge::console_bridge INTERFACE IMPORTED)
set_target_properties(console_bridge::console_bridge PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
${console_bridge_INCLUDE_DIRS})
set_target_properties(console_bridge::console_bridge PROPERTIES INTERFACE_LINK_LIBRARIES ${console_bridge_LIBRARIES})
else()
get_target_property(CHECK_INCLUDE_DIRECTORIES console_bridge::console_bridge INTERFACE_INCLUDE_DIRECTORIES)
if(NOT ${CHECK_INCLUDE_DIRECTORIES})
set_target_properties(console_bridge::console_bridge PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
${console_bridge_INCLUDE_DIRS})
endif()
endif()

# ${PROJECT_NAME}_string
add_library(${PROJECT_NAME}_string SHARED
src/string.cpp
)

# socketcan_dump
add_executable(socketcan_dump src/candump.cpp)
target_link_libraries(socketcan_dump
${PROJECT_NAME}_string
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
console_bridge::console_bridge
)

ament_target_dependencies(
socketcan_dump
pluginlib
)

# socketcan_bcm
add_executable(socketcan_bcm src/canbcm.cpp)
target_link_libraries(socketcan_bcm
${PROJECT_NAME}_string
${Boost_LIBRARIES}
console_bridge::console_bridge
)

# ${PROJECT_NAME}_plugin
add_library(${PROJECT_NAME}_plugin SHARED
src/${PROJECT_NAME}_plugin.cpp
)
target_link_libraries(${PROJECT_NAME}_plugin
${Boost_LIBRARIES}
console_bridge::console_bridge
)

pluginlib_export_plugin_description_file(socketcan_interface socketcan_interface_plugin.xml)

ament_target_dependencies(
${PROJECT_NAME}_plugin
pluginlib
)

ament_export_dependencies(
Boost
)

ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME}_string)

install(
TARGETS
socketcan_bcm
socketcan_dump
${PROJECT_NAME}_string
${PROJECT_NAME}_plugin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(
DIRECTORY include/
DESTINATION include
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)

ament_lint_auto_find_test_dependencies()

find_package(ament_cmake_gtest REQUIRED)

ament_add_gtest(${PROJECT_NAME}-test_dummy_interface
test/test_dummy_interface.cpp
)
target_link_libraries(${PROJECT_NAME}-test_dummy_interface
${PROJECT_NAME}_string
${Boost_LIBRARIES}
)

ament_add_gtest(${PROJECT_NAME}-test_string
test/test_string.cpp
)
target_link_libraries(${PROJECT_NAME}-test_string
${PROJECT_NAME}_string
${Boost_LIBRARIES}
)

ament_add_gtest(${PROJECT_NAME}-test_filter
test/test_filter.cpp
)
target_link_libraries(${PROJECT_NAME}-test_filter
${PROJECT_NAME}_string
${Boost_LIBRARIES}
)

ament_add_gtest(${PROJECT_NAME}-test_dispatcher
test/test_dispatcher.cpp
)
target_link_libraries(${PROJECT_NAME}-test_dispatcher
${PROJECT_NAME}_string
${Boost_LIBRARIES}
)
endif()

ament_package(
CONFIG_EXTRAS socketcan_interface-extras.cmake
)
Loading

0 comments on commit c42af24

Please sign in to comment.