Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
talos-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
talos-data
Commits
8eaa7927
Commit
8eaa7927
authored
5 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Plain Diff
Merge tag 'v1.2.1'
Release v1.2.1
parents
48d2f1a6
e47f4e9e
No related branches found
No related tags found
No related merge requests found
Pipeline
#8885
passed with warnings
4 years ago
Stage: test
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+28
-37
28 additions, 37 deletions
CMakeLists.txt
cmake
+1
-1
1 addition, 1 deletion
cmake
package.xml
+3
-3
3 additions, 3 deletions
package.xml
scripts/start_talos_gazebo_16_04.py
+55
-0
55 additions, 0 deletions
scripts/start_talos_gazebo_16_04.py
with
87 additions
and
41 deletions
CMakeLists.txt
+
28
−
37
View file @
8eaa7927
CMAKE_MINIMUM_REQUIRED
(
VERSION
2.8.3
)
CMAKE_MINIMUM_REQUIRED
(
VERSION
3.1
)
# Project properties
SET
(
PROJECT_ORG pyrene-dev
)
SET
(
PROJECT_ORG pyrene-dev
)
SET
(
PROJECT_NAME talos_data
)
SET
(
PROJECT_NAME talos_data
)
SET
(
PROJECT_DESCRIPTION
"Talos urdf model, srdf model and other data"
)
SET
(
PROJECT_DESCRIPTION
"Talos urdf model, srdf model and other data"
)
SET
(
PROJECT_URL
"https://gepgitlab.laas.fr/
${
PROJECT_ORG
}
/
${
PROJECT_NAME
}
"
)
SET
(
PROJECT_URL
"https://gepgitlab.laas.fr/
${
PROJECT_ORG
}
/
${
PROJECT_NAME
}
"
)
# Project options
OPTION
(
SUFFIX_SO_VERSION
"Suffix library name with its version"
ON
)
# Project configuration
SET
(
PROJECT_USE_CMAKE_EXPORT TRUE
)
SET
(
PROJECT_USE_CMAKE_EXPORT TRUE
)
SET
(
CXX_DISABLE_WERROR T
rue
)
SET
(
CXX_DISABLE_WERROR T
RUE
)
SET
(
CMAKE_CXX_STANDARD 11
)
SET
(
CMAKE_CXX_STANDARD 11
)
SET
(
PACKAGE_EXTRA_MACROS
"set(TALOS_DATA_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)"
)
#
include(cmake/ros.cmake)
#
JRL-cmakemodule setup
INCLUDE
(
cmake/base.cmake
)
INCLUDE
(
cmake/base.cmake
)
#
Specify the project.
#
Project definition
COMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
)
COMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
C
)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
find_package
(
catkin REQUIRED COMPONENTS
# Project dependencies
roscpp
)
catkin_package
(
# INCLUDE_DIRS include
# LIBRARIES talos_description
# CATKIN_DEPENDS roscpp
# DEPENDS system_lib
)
# Find xml_reflection
ADD_PROJECT_DEPENDENCY
(
urdfdom REQUIRED
)
ADD_PROJECT_DEPENDENCY
(
urdfdom REQUIRED
)
ADD_PROJECT_DEPENDENCY
(
gazebo REQUIRED
)
ADD_PROJECT_DEPENDENCY
(
gazebo REQUIRED
)
ADD_PROJECT_DEPENDENCY
(
roscpp
)
ADD_PROJECT_DEPENDENCY
(
roscpp
)
find_package
(
catkin REQUIRED COMPONENTS roscpp
)
# Needed due to the CMakeTarget from gazebo.
# Main Library
INCLUDE_DIRECTORIES
(
${
GAZEBO_INCLUDE_DIRS
}
)
SET
(
${
PROJECT_NAME
}
_HEADERS
INCLUDE_DIRECTORIES
(
${
catkin_INCLUDE_DIRS
}
)
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++0x"
)
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
ADD_LIBRARY
(
${
PROJECT_NAME
}
SET
(
${
PROJECT_NAME
}
_SOURCES
SHARED
src/SpringPlugin.cc
src/SpringPlugin.cc
)
)
TARGET_INCLUDE_DIRECTORIES
(
${
PROJECT_NAME
}
PRIVATE
${
GAZEBO_INCLUDE_DIRS
}
)
ADD_LIBRARY
(
${
PROJECT_NAME
}
SHARED
TARGET_INCLUDE_DIRECTORIES
(
${
PROJECT_NAME
}
PRIVATE
${
catkin_INCLUDE_DIRS
}
)
${${
PROJECT_NAME
}
_SOURCES
}
${${
PROJECT_NAME
}
_HEADERS
}
)
TARGET_INCLUDE_DIRECTORIES
(
${
PROJECT_NAME
}
PRIVATE
${
GAZEBO_INCLUDE_DIRS
}
${
catkin_INCLUDE_DIRS
}
)
INSTALL
(
TARGETS
IF
(
SUFFIX_SO_VERSION
)
${
PROJECT_NAME
}
SET_TARGET_PROPERTIES
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
EXPORT
${
TARGETS_EXPORT_NAME
}
ENDIF
(
SUFFIX_SO_VERSION
)
DESTINATION
${
CATKIN_PACKAGE_BIN_DESTINATION
}
LIBRARY DESTINATION
${
CATKIN_PACKAGE_LIB_DESTINATION
}
INSTALL
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION lib
)
)
FOREACH
(
dir config gazebo meshes robots urdf scripts srdf launch
)
FOREACH
(
dir config gazebo meshes robots urdf scripts srdf launch
)
INSTALL
(
DIRECTORY
${
dir
}
/
INSTALL
(
DIRECTORY
${
dir
}
DESTINATION share/
${
PROJECT_NAME
}
)
DESTINATION
${
CATKIN_PACKAGE_SHARE_DESTINATION
}
/
${
dir
}
)
ENDFOREACH
(
dir
)
ENDFOREACH
(
dir
)
INSTALL
(
FILES package.xml DESTINATION share/
${
PROJECT_NAME
}
)
This diff is collapsed.
Click to expand it.
cmake
@
321eb1cc
Compare
61344038
...
321eb1cc
Subproject commit
61344038b1352d5a8de1e20db710c83be805d2eb
Subproject commit
321eb1ccf1d94570eb564f3659b13ef3ef82239e
This diff is collapsed.
Click to expand it.
package.xml
+
3
−
3
View file @
8eaa7927
<?xml version="1.0"?>
<?xml version="1.0"?>
<package
format=
"2"
>
<package
format=
"2"
>
<name>
talos_data
</name>
<name>
talos_data
</name>
<version>
1.2.
0
</version>
<version>
1.2.
1
</version>
<description>
The talos_data package
</description>
<description>
The talos_data package
</description>
<maintainer
email=
"olivier.stasse@laas.fr"
>
Olivier Stasse
</maintainer>
<maintainer
email=
"olivier.stasse@laas.fr"
>
Olivier Stasse
</maintainer>
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
<exec_depend>
talos_description_calibration
</exec_depend>
<exec_depend>
talos_description_calibration
</exec_depend>
<exec_depend>
talos_description_inertial
</exec_depend>
<exec_depend>
talos_description_inertial
</exec_depend>
<exec_depend>
roscpp
</exec_depend>
<exec_depend>
roscpp
</exec_depend>
<test_depend>
rostest
</test_depend>
<test_depend>
rostest
</test_depend>
<test_depend>
urdf_test
</test_depend>
<test_depend>
urdf_test
</test_depend>
<test_depend>
roscpp
</test_depend>
<test_depend>
roscpp
</test_depend>
<export>
<export>
</export>
</export>
...
...
This diff is collapsed.
Click to expand it.
scripts/start_talos_gazebo_16_04.py
0 → 100644
+
55
−
0
View file @
8eaa7927
#!/usr/bin/env python
# O. Stasse 17/01/2020
# LAAS, CNRS
# This file is a temporary fix for the ubuntu version 16.04 of the script start_talos_gazebo.py
# The path to talos_data cannot be retreive using the rospkg.RosPack() and get_path('talos_data') in 16.04.
# This should be investigated (see issue #4 "Hardcoded talos_data path for 16.04 in script start_talos_gazebo_16_04.py")
import
os
import
rospy
import
time
import
roslaunch
from
std_srvs.srv
import
Empty
# Start roscore
import
subprocess
roscore
=
subprocess
.
Popen
(
'
roscore
'
)
time
.
sleep
(
1
)
# Start talos_gazebo
rospy
.
init_node
(
'
starting_talos_gazebo
'
,
anonymous
=
True
)
uuid
=
roslaunch
.
rlutil
.
get_or_generate_uuid
(
None
,
False
)
roslaunch
.
configure_logging
(
uuid
)
launch_gazebo_alone
=
roslaunch
.
parent
.
ROSLaunchParent
(
uuid
,
[
"
/opt/openrobots/share/talos_data/launch/talos_gazebo_alone.launch
"
])
launch_gazebo_alone
.
start
()
rospy
.
loginfo
(
"
talos_gazebo_alone started
"
)
rospy
.
wait_for_service
(
"
/gazebo/pause_physics
"
)
gazebo_pause_physics
=
rospy
.
ServiceProxy
(
'
/gazebo/pause_physics
'
,
Empty
)
gazebo_pause_physics
()
time
.
sleep
(
3
)
# Spawn talos model in gazebo
launch_gazebo_spawn_hs
=
roslaunch
.
parent
.
ROSLaunchParent
(
uuid
,
[
"
/opt/openrobots/share/talos_data/launch/talos_gazebo_spawn_hs.launch
"
])
launch_gazebo_spawn_hs
.
start
()
rospy
.
loginfo
(
"
talos_gazebo_spawn_hs started
"
)
rospy
.
wait_for_service
(
"
/gains/arm_left_1_joint/set_parameters
"
)
time
.
sleep
(
3
)
gazebo_unpause_physics
=
rospy
.
ServiceProxy
(
'
/gazebo/unpause_physics
'
,
Empty
)
gazebo_unpause_physics
()
# Start roscontrol
launch_bringup
=
roslaunch
.
parent
.
ROSLaunchParent
(
uuid
,
[
"
/opt/openrobots/share/talos_bringup/launch/talos_bringup.launch
"
])
launch_bringup
.
start
()
rospy
.
loginfo
(
"
talos_bringup started
"
)
# # Start sot
# Start sot in another terminal with "roslaunch roscontrol_sot_talos sot_talos_controller_gazebo.launch"
# in order to have the logs saved. Otherwise the data are not correctly dumped when the process is killed.
rospy
.
spin
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment