Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/.ci.rosinstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- git:
uri: https://github.com/rt-net/raspimouse_description.git
local-name: raspimouse_description
version: jazzy
version: lyrical
2 changes: 1 addition & 1 deletion .github/workflows/industrial_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [jazzy]
ROS_DISTRO: [lyrical]
ROS_REPO: [main]

runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ ROS 2 package suite for simulating the Raspberry Pi Mouse in Gazebo

- [Humble Hawksbill](https://github.com/rt-net/raspimouse_sim/tree/humble)
- [Jazzy Jalisco](https://github.com/rt-net/raspimouse_sim/tree/jazzy)
- [Lyrical Luth](https://github.com/rt-net/raspimouse_sim/tree/lyrical)

## Requirements

- OS
- Ubuntu Desktop 24.04
- Ubuntu Desktop 26.04
- ROS 2
- ROS 2 Jazzy Jalisco
- ROS 2 Lyrical Luth
- Gazebo
- Gazebo Sim 8.x
- Gazebo Sim 10.x

## Installation

### Binary Installation

```bash
sudo apt install ros-jazzy-raspimouse-sim
sudo apt install ros-$ROS_DISTRO-raspimouse-sim
```

### Source Build
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ Gazebo上でRaspberry Pi Mouseの動作をシミュレーションするため

- [Humble Hawksbill](https://github.com/rt-net/raspimouse_sim/tree/humble)
- [Jazzy Jalisco](https://github.com/rt-net/raspimouse_sim/tree/jazzy)
- [Lyrical Luth](https://github.com/rt-net/raspimouse_sim/tree/lyrical)

## Requirements

- OS
- Ubuntu Desktop 24.04
- Ubuntu Desktop 26.04
- ROS 2
- ROS 2 Jazzy Jalisco
- ROS 2 Lyrical Luth
- Gazebo
- Gazebo Sim 8.x
- Gazebo Sim 10.x

## Installation

### Binary Installation

```bash
sudo apt install ros-jazzy-raspimouse-sim
sudo apt install ros-$ROS_DISTRO-raspimouse-sim
```

### Source Build
Expand Down
22 changes: 13 additions & 9 deletions raspimouse_fake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.20)
project(raspimouse_fake)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(rclcpp_lifecycle REQUIRED)
find_package(lifecycle_msgs REQUIRED)
find_package(std_srvs REQUIRED)

include_directories(include)

add_library(fake_raspimouse_component SHARED
src/fake_raspimouse_component.cpp)
target_include_directories(fake_raspimouse_component PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_compile_definitions(fake_raspimouse_component
PRIVATE "RASPIMOUSE_FAKE_BUILDING_DLL")
ament_target_dependencies(fake_raspimouse_component
rclcpp
rclcpp_components
rclcpp_lifecycle
lifecycle_msgs
std_srvs)
target_link_libraries(fake_raspimouse_component PUBLIC
rclcpp::rclcpp
rclcpp_components::component
rclcpp_lifecycle::rclcpp_lifecycle
lifecycle_msgs::lifecycle_msgs__rosidl_generator_cpp
std_srvs::std_srvs__rosidl_typesupport_cpp)
rclcpp_components_register_nodes(fake_raspimouse_component "fake_raspimouse::Raspimouse")

ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET)
Expand Down
5 changes: 4 additions & 1 deletion raspimouse_gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.20)
project(raspimouse_gazebo)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(ament_cmake REQUIRED)

install(DIRECTORY
Expand Down
1 change: 0 additions & 1 deletion raspimouse_gazebo/config/raspimouse_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ diff_drive_controller:
base_frame_id: base_footprint
open_loop: false
enable_odom_tf: true
use_stamped_vel : false
15 changes: 14 additions & 1 deletion raspimouse_gazebo/launch/raspimouse_with_emptyworld.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def generate_launch_description():
description_loader.gz_control_config_package = 'raspimouse_gazebo'
description_loader.gz_control_config_file_path = 'config/raspimouse_controllers.yaml'

controller_config_file = os.path.join(
get_package_share_directory('raspimouse_gazebo'),
description_loader.gz_control_config_file_path,
)

robot_state_publisher = Node(
package='robot_state_publisher',
executable='robot_state_publisher',
Expand All @@ -139,7 +144,15 @@ def generate_launch_description():
package='controller_manager',
executable='spawner',
output='screen',
arguments=['diff_drive_controller'],
arguments=[
'diff_drive_controller',
'--param-file',
controller_config_file,
'--controller-ros-args',
'-r /diff_drive_controller/cmd_vel:=/cmd_vel',
'--controller-ros-args',
'-r /diff_drive_controller/odom:=/odom',
],
)

rviz_config_file = get_package_share_directory('raspimouse_gazebo') + '/config/config.rviz'
Expand Down
6 changes: 5 additions & 1 deletion raspimouse_sim/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.20)
project(raspimouse_sim)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(ament_cmake REQUIRED)
ament_package()
Loading