-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter to disable ROS network interaction from/to Gazebo #585
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2881457
Option to disable all gazebo inputs/outputs from/to ROS
j-rivero 808d588
Secure backup
j-rivero 905a427
Fix disabled call
j-rivero 0bb438e
Do not block /clock
j-rivero 94f2240
Disconnect time_update_event
j-rivero b7ce6d3
Add copyright to the script
j-rivero 32c5551
Do not show error when enable_ros_network is not present
j-rivero 4fb767f
Increase the timeout to leave gazebo download models withotu failing
j-rivero c8b3806
Merge branch 'kinetic-devel' into ros_network_option_test
j-rivero 80ed63a
Remove error in the merge
j-rivero 0233b38
Merge branch 'kinetic-devel' into ros_network_option_test
j-rivero f666bb3
Fix problems with code after merge
j-rivero a42e495
Update results of topic/service listing
j-rivero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set (rostests_python | ||
ros_network/ros_network_default.test | ||
ros_network/ros_network_disabled.test | ||
) | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
find_package(rostest REQUIRED) | ||
foreach (rostest ${rostests_python}) | ||
# We don't set a timeout here because we trust rostest to enforce the | ||
# timeout specified in each .test file. | ||
add_rostest(${rostest} rostest ${CMAKE_CURRENT_SOURCE_DIR}/${rostest}) | ||
# Check for test result file and create one if needed. rostest can fail to | ||
# generate a file if it throws an exception. | ||
add_test(check_${rostest} rosrun rosunit check_test_ran.py | ||
--rostest ${ROS_PACKAGE_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${rostest}) | ||
endforeach() | ||
endif() | ||
|
||
install(PROGRAMS | ||
ros_network/ros_api_checker | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/test | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
strict: true | ||
|
||
########################################################## | ||
# Published topics | ||
topics: | ||
# System | ||
- topic: /clock | ||
type: rosgraph_msgs/Clock | ||
num_publishers: 1 | ||
num_subscribers: -1 | ||
|
||
- topic: /rosout | ||
type: rosgraph_msgs/Log | ||
num_publishers: -1 | ||
num_subscribers: -1 | ||
|
||
# Gazebo | ||
- topic: /gazebo/set_model_state | ||
type: gazebo_msgs/ModelState | ||
num_publishers: 0 | ||
num_subscribers: -1 | ||
|
||
- topic: /gazebo/set_link_state | ||
type: gazebo_msgs/LinkState | ||
num_publishers: 0 | ||
num_subscribers: -1 | ||
|
||
- topic: /gazebo/link_states | ||
type: gazebo_msgs/LinkStates | ||
num_publishers: 1 | ||
num_subscribers: -1 | ||
|
||
- topic: /gazebo/model_states | ||
type: gazebo_msgs/ModelStates | ||
num_publishers: 1 | ||
num_subscribers: -1 | ||
|
||
- topic: /gazebo/parameter_descriptions | ||
type: dynamic_reconfigure/ConfigDescription | ||
num_publishers: 1 | ||
num_subscribers: -1 | ||
|
||
- topic: /gazebo/parameter_updates | ||
type: dynamic_reconfigure/Config | ||
num_publishers: 1 | ||
num_subscribers: -1 | ||
|
||
########################################################## | ||
# Published services | ||
services: | ||
# Gazebo | ||
- service: /gazebo/apply_joint_effort | ||
type: gazebo_msgs/ApplyJointEffort | ||
|
||
- service: /gazebo/get_physics_properties | ||
type: gazebo_msgs/GetPhysicsProperties | ||
|
||
- service: /gazebo/set_link_state | ||
type: gazebo_msgs/SetLinkState | ||
|
||
- service: /gazebo/set_joint_properties | ||
type: gazebo_msgs/SetJointProperties | ||
|
||
- service: /gazebo/reset_world | ||
type: std_srvs/Empty | ||
|
||
- service: /gazebo/set_model_configuration | ||
type: gazebo_msgs/SetModelConfiguration | ||
|
||
- service: /gazebo/get_world_properties | ||
type: gazebo_msgs/GetWorldProperties | ||
|
||
- service: /gazebo/delete_light | ||
type: gazebo_msgs/DeleteLight | ||
|
||
- service: /gazebo/set_parameters | ||
type: dynamic_reconfigure/Reconfigure | ||
|
||
- service: /gazebo/spawn_sdf_model | ||
type: gazebo_msgs/SpawnModel | ||
|
||
- service: /gazebo/unpause_physics | ||
type: std_srvs/Empty | ||
|
||
- service: /gazebo/pause_physics | ||
type: std_srvs/Empty | ||
|
||
- service: /gazebo/get_joint_properties | ||
type: gazebo_msgs/GetJointProperties | ||
|
||
- service: /gazebo/set_logger_level | ||
type: roscpp/SetLoggerLevel | ||
|
||
- service: /gazebo/get_light_properties | ||
type: gazebo_msgs/GetLightProperties | ||
|
||
- service: /gazebo/clear_body_wrenches | ||
type: gazebo_msgs/BodyRequest | ||
|
||
- service: /gazebo/clear_joint_forces | ||
type: gazebo_msgs/JointRequest | ||
|
||
- service: /gazebo/set_physics_properties | ||
type: gazebo_msgs/SetPhysicsProperties | ||
|
||
- service: /gazebo/get_model_state | ||
type: gazebo_msgs/GetModelState | ||
|
||
- service: /gazebo/reset_simulation | ||
type: std_srvs/Empty | ||
|
||
- service: /gazebo/delete_model | ||
type: gazebo_msgs/DeleteModel | ||
|
||
- service: /gazebo/spawn_urdf_model | ||
type: gazebo_msgs/SpawnModel | ||
|
||
- service: /gazebo/set_link_properties | ||
type: gazebo_msgs/SetLinkProperties | ||
|
||
- service: /gazebo/set_model_state | ||
type: gazebo_msgs/SetModelState | ||
|
||
- service: /gazebo/apply_body_wrench | ||
type: gazebo_msgs/ApplyBodyWrench | ||
|
||
- service: /gazebo/get_link_state | ||
type: gazebo_msgs/GetLinkState | ||
|
||
- service: /gazebo/get_loggers | ||
type: roscpp/GetLoggers | ||
|
||
- service: /gazebo/get_model_properties | ||
type: gazebo_msgs/GetModelProperties | ||
|
||
- service: /gazebo/set_light_properties | ||
type: gazebo_msgs/SetLightProperties | ||
|
||
- service: /gazebo/get_link_properties | ||
type: gazebo_msgs/GetLinkProperties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
strict: true | ||
|
||
########################################################## | ||
# Published topics | ||
topics: | ||
# System | ||
- topic: /clock | ||
type: rosgraph_msgs/Clock | ||
num_publishers: 1 | ||
num_subscribers: -1 | ||
|
||
- topic: /rosout | ||
type: rosgraph_msgs/Log | ||
num_publishers: -1 | ||
num_subscribers: -1 | ||
|
||
########################################################## | ||
# Published services | ||
services: | ||
# System | ||
- service: /gazebo/set_logger_level | ||
type: roscpp/SetLoggerLevel | ||
|
||
- service: /gazebo/get_loggers | ||
type: roscpp/GetLoggers |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/clock is already advertised within advertiseServices(), perhaps it should be removed there.