radar_omnipresense package from radar_omnipresense reporadar_omnipresense |
|
Package Summary
Tags | No category tags. |
Version | 0.3.0 |
License | ECL2.0 |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/SCU-RSL-ROS/radar_omnipresense.git |
VCS Type | git |
VCS Version | 0.3.0 |
Last Updated | 2018-09-10 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
radar_omnipresense, a package for ROS
A Robotic Operating System (ROS) publisher and service for the OmniPreSense short range radar.
Package Dependencies
You will need to download and install:
in order to successfully build the package with the ROS development tools.
In order to run (and build) this package, a system has to have the at least the ROS-base package.
You can test if you have ROS installed correctly by attempting to run roscore, a required program for all subsequent examples. If roscore is already running, it is safe to run roscore again and ignore any warnings about it already running.
roscore
Running the package with roslaunch
To run the package you will need to ensure that you have at least one OmniPreSense short range radar device plugged into your USB port(s). Once this is done, use the roslaunch command in a shell terminal. To do so, enter the following command. Note: (This was developed on the Lunar release of ROS on a Linux machine, and tested with the ROS Kinetic release on Raspberry Pis running Ubuntu. We recommend installing the ROS Kinetic release or later on a Linux machine.)
roslaunch radar_omnipresense single_radar.launch
or, if you have multiple radar modules, edit launch/multi_radar.launch as required and enter
roslaunch radar_omnipresense multi_radar.launch
This will run the package on the topics as declared in the .launch file you specified. (For example, “radar_1”)
Note: roslaunch stays running. You will need to have another shell open to enter other commands while the radar_omnipresense node is running. The unix utility “screen” is a very valuable utility if you are accessing the ROS linux instance over ssh, or more generally do not have the ability to have multiple terminals.
To view these topics please type the following command into a terminal.
rostopic echo /radar_report
The above comman will for if you are specifically using the single_radar.launch file. If you are using the multi_radar. launch file, use the following commands.
rostopic echo /radar_1/radar_report
Then, if running a second radar module, in another terminal please type the following command to view the topic that the second radar is publishing to.
rostopic echo /radar_2/radar_report
Note: If you only have one radar device but use the multi_radar.launch file, the roslaunch command will still work, but you will see “error 2 opening /dev/ttyACM#”, and # will be the port the device is connected to. The one radar will still publish data to the topic and the associated service can still be used.
Running the ROS service to activate and deactivate FFT output
By default, the OmniPreSense radar sensor reports the speed of the most interesting target (which refers to the strongest bounced signal). If you would like for the radar devices to output the FFT data, utilize a “ROS service call” to the module, after you have executed the previous commands listed above. We recommend the following commands be typed into a new terminal.
rosservice call /radar_1/send_api_command "command: 'OF'"
This will enable FFT data to be sent from the radar device. You can see the data published to the topic by the command
rostopic echo /radar_1/radar_report
If running more than one sensor, substitute _1 with the appropriate number for each additional sensor when issuing more commands.
Changelog for package radar_omnipresense
0.3.0 (2018-09-10)
- Remove use of rapidjson
- make compatible with OPS241 (API v 1.0-1-1) and OPS242 (v1.2 and beyond)
- Contributors: Jim Whitfield
0.2.0 (2018-05-31)
- serialconnection folder
- added rapidjson, which has all needed header files
- added rapidjson folder in lib folder
- added rapidjson include the lib folder and 'wrapped' it in a radar_omnipresense namespace
- Contributors: Garren Hendricks, Jim Whitfield
0.1.0 (2018-05-11)
- commiting the 2011 api version of the code. The branch RapidJSON_preserve contians 2015 api version. That branch should not be modified at all
- altered findrapidjson
- updated CMakeLists and utest to 'pass'
- adding files for very simple 'unit testing'
- Updated the readme to no longer say that you need to download and install LinuxCommConnection for the package
- Added the lib file so that linuxcommconnection is no longer a depedency issue
- Prepping for ros package submittal
- Added the lib file so that linuxcommconnection is no longer a depedency issue
- address RapidJSON dependency
- added raw msgs
- Contributors: Garren Hendricks, Jim Whitfield
0.0.1 (2018-04-07)
- Merge branch 'master' of https://github.com/SCU-RSL-ROS/radar_omnipresense
- added doxygen detectable documentation for the function prototypes
- changed the topic name from 'radar' to 'radar_report'
- sensor id field shows the serial port that the radar is connected to
- added the rosluanch file for a single radar sensor and then have a rosluanch file that will launch multiple radar sensors, currently it launches 2
- Added unix time stamp to msg data
- Adding folder udev to contain device rules for usb radar device. also adding a bash script to move the rules to proper filesystem location.
- Create LICENSE
- added Findrapidjson.cmake
- Contributors: Garren Hendricks, Matthew Condino, Pillager225, RyanLoringCooper, Jim Whitfield