Skip to content

Commit d3cf56b

Browse files
author
Chen Shudong
committedMar 22, 2022
feat:support of Aubo Robot ROS-Noetic
1 parent 8061c35 commit d3cf56b

15 files changed

+623
-51
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# AUBO Robot
2-
**Maintainer: zhaoyu@aubo-robotics.cn**
2+
**Maintainer: chenshudong@aubo-robotics.cn**
33

44

55

66

77
* Aubo_robot [ROS](http://www.ros.org/) meta-package for [ROS-Industrial](http://wiki.ros.org/Industrial). See the [ROS wiki](http://wiki.ros.org/) page for more information.
88

9-
* This repository provides ROS support for [AUBO robots](https://aubo-robotics.com/en/). This repository holds source code for `kinetic`. The corresponding robot controller software version is `V4`. For those software version < `V4`, can refer to [here]( http://wiki.ros.org/aubo_robot).
9+
* This repository provides ROS support for [AUBO robots](https://aubo-robotics.com/en/). This repository holds source code for 'Noetic'. The corresponding robot controller software version is 'V4'. For those software version < 'V4', can refer to [here]( http://wiki.ros.org/aubo_robot).
1010

1111
### Installation from Source
1212
---

‎aubo_controller/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ install(TARGETS aubo_joint_trajectory_action DESTINATION ${CATKIN_PACKAGE_BIN_DE
5757
#install(TARGETS aubo_simulator_controller DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
5858

5959
catkin_install_python(PROGRAMS script/aubo_controller/aubo_robot_simulator
60-
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
60+
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

‎aubo_controller/script/aubo_controller/aubo_robot_simulator

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# Software License Agreement (BSD License)
44
# Copyright (c) 2017-2018, Aubo Robotics
@@ -31,7 +31,15 @@
3131
import rospy
3232
import copy
3333
import threading
34-
import Queue
34+
import sys
35+
import os
36+
path = os.path.dirname(os.path.realpath(__file__))
37+
sys.path.insert(0,path)
38+
print(path)
39+
if sys.version > '3':
40+
import queue as Queue
41+
else:
42+
import Queue
3543

3644
# Publish
3745
from sensor_msgs.msg import JointState
@@ -225,7 +233,7 @@ class MotionControllerSimulator():
225233

226234
rospy.loginfo('Starting motion worker in motion controller simulator')
227235
move_duration = rospy.Duration()
228-
if self.update_rate <> 0.:
236+
if self.update_rate != 0:
229237
update_duration = rospy.Duration(1./self.update_rate)
230238
last_goal_point = JointTrajectoryPoint()
231239

‎aubo_controller/script/aubo_controller/trajectory_speed.py

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Software License Agreement (BSD License)
44
# Copyright (c) 2017-2018, Aubo Robotics
@@ -147,4 +147,4 @@ def create_tracking_trajectory(traj, speed, min_speed):
147147
new_traj.joint_trajectory.points[i].accelerations = [speed / 4.0] * n_joints
148148

149149
# Return the new trajecotry
150-
return new_traj
150+
return new_traj

‎aubo_demo/CMakeLists.txt

+33
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ project(aubo_demo)
44
## Compile as C++11, supported in ROS Kinetic and newer
55
add_compile_options(-std=c++11)
66

7+
if("$ENV{ROS_DISTRO}" STREQUAL "noetic")
8+
find_package(catkin REQUIRED COMPONENTS
9+
roscpp
10+
rospy
11+
std_msgs
12+
moveit_core
13+
moveit_visual_tools
14+
moveit_ros_planning
15+
moveit_ros_planning_interface
16+
pluginlib
17+
geometric_shapes
18+
pcl_ros
19+
pcl_conversions
20+
rosbag
21+
tf
22+
tf2_ros
23+
#tf2_eigen
24+
tf2_geometry_msgs
25+
)
26+
Message(STATUS "<<<<<<<<<<<<<<<<<<<<<<<<<Note: Find Package for noetic")
27+
endif()
28+
729
if("$ENV{ROS_DISTRO}" STREQUAL "melodic")
830
find_package(catkin REQUIRED COMPONENTS
931
roscpp
@@ -93,6 +115,17 @@ include_directories(
93115
${catkin_INCLUDE_DIRS}
94116
)
95117

118+
if("$ENV{ROS_DISTRO}" STREQUAL "noetic")
119+
## Declare a C++ executable
120+
## With catkin_make MoveGroupInterface_To_Kinetic package is built within a single CMake context
121+
## The recommended prefix ensures that target names across packages don't collide
122+
add_executable(MoveGroupInterface_To_Noetic src/MoveGroupInterface_To_Noetic.cpp)
123+
124+
## Specify libraries to link a library or executable target against
125+
target_link_libraries(MoveGroupInterface_To_Noetic ${catkin_LIBRARIES} ${Boost_LIBRARIES})
126+
Message(STATUS "<<<<<<<<<<<<<<<<<<<<<<<<<Note: build aubo_demo node for Noetic")
127+
endif()
128+
96129
if("$ENV{ROS_DISTRO}" STREQUAL "melodic")
97130
## Declare a C++ executable
98131
## With catkin_make MoveGroupInterface_To_Kinetic package is built within a single CMake context
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<launch>
2+
3+
<node name="MoveGroupInterface_To_Noetic" pkg="aubo_demo" type="MoveGroupInterface_To_Noetic" respawn="false" output="screen">
4+
</node>
5+
6+
</launch>

0 commit comments

Comments
 (0)