Skip to content

Commit

Permalink
merged noetic
Browse files Browse the repository at this point in the history
  • Loading branch information
niscode committed Apr 19, 2023
2 parents 8f3f35f + c8016a9 commit 8b7018a
Show file tree
Hide file tree
Showing 62 changed files with 3,505 additions and 781 deletions.
73 changes: 59 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.0.2)
# cmake_minimum_required(VERSION 2.8.3)
project(telecoV)

## Compile as C++11, supported in ROS Kinetic and newer
Expand All @@ -18,6 +19,7 @@ find_package(catkin REQUIRED COMPONENTS
tf2
urdf
xacro
rviz
)

## System dependencies are found with CMake's conventions
Expand All @@ -29,6 +31,15 @@ find_package(catkin REQUIRED COMPONENTS
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()

# 2023/01/10 for Control Panel
set(CMAKE_AUTOMOC ON)
find_package(Qt5 ${rviz_QT_VERSION} EXACT REQUIRED
Core
Widgets
)
set(QT_LIBRARIES Qt5::Widgets)
add_definitions(-DQT_NO_KEYWORDS)

################################################
## Declare ROS messages, services and actions ##
################################################
Expand Down Expand Up @@ -110,10 +121,10 @@ find_package(catkin REQUIRED COMPONENTS
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES telecoV
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy sensor_msgs std_msgs tf tf2 urdf xacro
# DEPENDS system_lib
# INCLUDE_DIRS include
# LIBRARIES telecoV
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy sensor_msgs std_msgs tf tf2 urdf xacro
DEPENDS system_lib
)

###########
Expand All @@ -131,6 +142,10 @@ include_directories(
# add_library(${PROJECT_NAME}
# src/${PROJECT_NAME}/telecoV.cpp
# )
add_library(${PROJECT_NAME}
src/qt_twist_panel.cpp
src/qt_touch.cpp
)

## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
Expand All @@ -141,7 +156,12 @@ include_directories(
## With catkin_make all packages are built within a single CMake context
## The recommended prefix ensures that target names across packages don't collide
# add_executable(${PROJECT_NAME}_node src/telecoV_node.cpp)
add_executable(telecoV_pub_odom src/pub_odom.cpp)
# add_executable(telecoV_pub_odom src/pub_odom.cpp)
add_executable(pub_odom src/pub_odom.cpp)
add_executable(odom_listener src/odom_listener.cpp)
add_executable(pub_info src/pub_info.cpp)
add_executable(pub_fusion src/pub_fusion.cpp)


## Rename C++ executable without prefix
## The above recommended prefix causes long target names, the following renames the
Expand All @@ -157,15 +177,40 @@ add_executable(telecoV_pub_odom src/pub_odom.cpp)
# target_link_libraries(${PROJECT_NAME}_node
# ${catkin_LIBRARIES}
# )
target_link_libraries(telecoV_pub_odom

target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${QT_LIBRARIES}
)

#target_link_libraries(telecoV_pub_odom
# ${catkin_LIBRARIES}
#)

target_link_libraries(pub_odom
${catkin_LIBRARIES}
)

target_link_libraries(odom_listener
${catkin_LIBRARIES}
)

set_target_properties(telecoV_pub_odom
target_link_libraries(pub_info
${catkin_LIBRARIES}
)

target_link_libraries(pub_fusion
${catkin_LIBRARIES}
)

#set_target_properties(telecoV_pub_odom
# PROPERTIES OUTPUT_NAME pub_odom
# PREFIX "")

set_target_properties(pub_odom
PROPERTIES OUTPUT_NAME pub_odom
PREFIX "")


#############
## Install ##
#############
Expand Down Expand Up @@ -215,13 +260,13 @@ install(DIRECTORY params
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

install(DIRECTORY meshes
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
#install(DIRECTORY meshes
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
#)

install(DIRECTORY robots
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
#install(DIRECTORY robots
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
#)

install(DIRECTORY urdf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@ created by ©︎niscode
- 手順通りに進めると $ roscore できるようになります。
<br>


## [2/3] Ubuntu18.04 / ROS-melodic 環境で動作に必要なパッケージ群は以下の通りです。
- `sudo apt -y install ros-melodic-rosserial`
- `sudo apt -y install ros-melodic-slam-gmapping`
- `sudo apt -y install ros-melodic-navigation`
- `ros-melodic-map-server`
- `ros-melodic-jsk-visualization`
<br>

- `cd catkin_ws/src`
- `git clone https://github.com/niscode/telecoV.git`
- `git clone https://github.com/Slamtec/rplidar_ros.git`
- `git clone https://github.com/iralabdisco/ira_laser_tools.git`
- `git clone https://github.com/GT-RAIL/robot_pose_publisher.git`
<br>

- `cd catkin_ws`
- `catkin_make`
<br>
Expand All @@ -40,6 +46,15 @@ created by ©︎niscode
- `roslaunch telecoV dual_gmapping.launch`
### navigationによる自律移動は以下のように実行します。
- `roslaunch telecoV dual_naivation.launch`

<br><br>

### 20230217 - melodic更新を一時停止
=======

### cylinder昇降用スライダを表示するには以下を実行します。
- `rosrun telecoV cylinder.py`
<br>![シリンダー上下用のスライダー](img/slider.png)
- スライダーを上下に動かし、任意の位置で Update ボタンを押すことで動作します。
-`rosrun rosserial_python serial_node.py _port:=/dev/ROVER_BOARD _baud:=115200` が実行中か、
navigationなどのパッケージ実行中のみ、昇降が可能です。
15 changes: 0 additions & 15 deletions config/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions config/costmap_commom_params.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions config/dwa_local_planner_params.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions config/global_costmap_params.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions config/local_costmap_params.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions config/move_base_params.yaml

This file was deleted.

Loading

0 comments on commit 8b7018a

Please sign in to comment.