-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added new parameters for topic and service security. Added 3 new parameters to rosapi and rosbridge_server which filter the topics, services, and parameters broadcast by the server to match an array of glob strings. * Two minor fixes. * Fixed time object field definitions to match documentation. * As per the suggestions of @T045T, fixed several typos, improved logging, and made some style fixes. * Added services_glob to CallServices, added globs to rosbridge_tcp and rosbridge_udp, and other miscellanous fixes. * add missing imports and correct default values for glob parameters * correct default values for security globs also accept empty list as the default "do not check globs" value in addition to None. Finally, append rosapi service glob after processing command line input so it's not overwritten * add missing import * adjust log level for security globs Normal operation (i.e. no globs or successful verification of requests) is now silent, with illegal requests producing a warning. * new service: get actionlib servers * no rospy needed, just for debug logging * Delay unregister to mitigate !138 * Fix: Set default to publish all topics Without better doc, one does not understand why no topics are published. I thought, something is broken. With this defaults, everything is working out of the box. And for a more secure setup, one can change it. * Added default topics to all launch files, and fixed bug where it would crash if nothing was put into the lists as values * Added bug fix in rosapi * Fixed the launch files for the tcp and udp service. Without these modifications, the rosapi node fails because some rosparams are not defined properly before. Now the launchfiles comply to the websocket version. * update changelog * 0.7.17 * Implemented a bson_only_mode flag for the TCP version of rosbridge; This allows you to switch to a full-duplex transmission of BSON messages and therefore eliminates the need for a base64 encoding of binary data; Use the new mode by starting:'roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=True' or passing '--bson_only_mode' to the rosbridge_tcp.py script * minor change in variable usage * Move UNREGISTER_TIMEOUT to member class so it's accessible from outside * Fix missing tests due to delayed unregistration * Fix test advertise errors after delayed unregister changes * Reduce timeout for tests Tests will sleep for 10% extra of the timeout to prevent some situations were the test sleep ended right before the unregister timer fired * Change class constant to module constant * Update protocol.py Prevent a KeyError when bson_only_mode is unset. * Set default for bson_only_mode in websocket handler and launch file. * Create README.md * Update README.md Formatting and examples * don't try to set TCP nodelay option for UDP * expose binary_encoder rosparam that was hidden in deep depth * correct the possible argument * address review comment. more explicitly describe valid args * Cleaning up travis configuration (#283) configure travis to use industial ci configuration. Now it uses xenial and kinetic * fix delete_param in rosapi (#284) * added topic and service names to warnings in order to improve immediate debugability; minor linting (#286) * Fixing errors in test. (#287) * appease call service using timeout and proper arrival waiting * add queue_size on publisher * test them individually. * add time after wait for service * update changelog * 0.8.0 * remove ujson from dependency to build in trusty (#290) * update changelog * 0.8.1
- Loading branch information
Showing
39 changed files
with
964 additions
and
170 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
language: | ||
- cpp | ||
- python | ||
# This config file for Travis CI utilizes ros-industrial/industrial_ci package. | ||
# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst | ||
|
||
dist: xenial | ||
services: | ||
- docker | ||
language: generic | ||
python: | ||
- "2.7" | ||
compiler: | ||
- gcc | ||
|
||
notifications: | ||
email: | ||
on_success: always | ||
on_failure: always | ||
|
||
env: | ||
matrix: | ||
- ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu USE_DEB=true | ||
- ROS_DISTRO="kinetic" PRERELEASE=true PRERELEASE_DOWNSTREAM_DEPTH=0 | ||
|
||
matrix: | ||
allow_failures: | ||
- env: ROS_DISTRO="kinetic" PRERELEASE=true PRERELEASE_DOWNSTREAM_DEPTH=0 | ||
|
||
branches: | ||
only: | ||
- master | ||
- develop | ||
|
||
install: | ||
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list' | ||
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add - | ||
- sudo apt-get update -qq | ||
- sudo apt-get install python-catkin-pkg python-rosdep ros-hydro-catkin -qq | ||
- sudo rosdep init | ||
- rosdep update | ||
- mkdir -p /tmp/ws/src | ||
- ln -s `pwd` /tmp/ws/src/package | ||
- cd /tmp/ws | ||
- rosdep install --from-paths src --ignore-src --rosdistro hydro -y | ||
- sudo pip install ujson | ||
before_script: | ||
- source /opt/ros/hydro/setup.bash | ||
- catkin_make | ||
- catkin_make install | ||
- sudo apt-get install ros-hydro-rostest | ||
- source devel/setup.bash | ||
- export ROS_MASTER_URI=http://localhost:11311 | ||
- export ROS_HOSTNAME=localhost | ||
- git clone https://github.com/ros-industrial/industrial_ci.git .ci_config | ||
|
||
script: | ||
- rostest rosbridge_library test_all.test | ||
- sudo pip uninstall ujson -y -q | ||
- rostest rosbridge_library test_all.test | ||
- source .ci_config/travis.sh |
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,29 @@ | ||
rosapi | ||
=============== | ||
|
||
#### Parameters | ||
|
||
* `~topics_glob` (string, default '') | ||
* `~services_glob` (string, default '') | ||
* `~params_glob` (string, default '') | ||
|
||
```Note: By default the rosapi calls for details about topics, services, and parameters will return nothing. You must specify a list of allowed resources.``` | ||
Each of the glob parameters may contain an array of one or more match patterns. Resources that match any of the specified patterns will be returned by calls to the rosapi services. | ||
|
||
An example launch file which enables all information to be returned. | ||
|
||
``` | ||
<node name="rosapi" pkg="rosapi" type="rosapi_node"> | ||
<param name="topics_glob" value="[*]" /> | ||
<param name="services_glob" value="[*]" /> | ||
<param name="params_glob" value="[*]" /> | ||
</node> | ||
``` | ||
|
||
|
||
This example launch file enables only rosout and certain camera topics | ||
``` | ||
<node name="rosapi" pkg="rosapi" type="rosapi_node"> | ||
<param name="topics_glob" value="[/rosout, /camera/rgb/*]" /> | ||
</node> | ||
``` |
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
Oops, something went wrong.