Skip to content
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

Sensor Services #1

Merged
merged 35 commits into from
Jun 2, 2022
Merged

Conversation

smartSRA
Copy link
Collaborator

@smartSRA smartSRA commented Nov 25, 2021

This PR aims to take use of ros services issue #3 to communicate and send instructions/commands to the sensors. The umrr sensors come with different operation modes and features which could be accessed through the services.

This takes use of ros2 services to communicate and send instructions/commands to the sensors
@smartSRA
Copy link
Collaborator Author

We are able to configure the IP address of the sensor providing a separate service for it. In order to successfully configure the IP address , after executing the service the sensor and the node must be restarted with the new sensor_ip value in the radar_param file.

Could be done with the following call:
ros2 service call /smartmicro_radar_node/configure_ip_address umrr_ros2_msgs/srv/SetIp "{value_ip: 3232238489, sensor_id: x}"

The value of the IP address must be a DEC which is converted from HEX for e.g 3232238489 -> C0A8 0B99 -> 192.168.11.153.

Copy link

@JWhitleyWork JWhitleyWork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought I would run through a review while I was responding to another issue.

umrr_ros2_driver/CMakeLists.txt Outdated Show resolved Hide resolved
umrr_ros2_driver/CMakeLists.txt Outdated Show resolved Hide resolved
umrr_ros2_driver/CMakeLists.txt Outdated Show resolved Hide resolved
umrr_ros2_driver/src/smartmicro_radar_node.cpp Outdated Show resolved Hide resolved
umrr_ros2_driver/src/smartmicro_radar_node.cpp Outdated Show resolved Hide resolved
umrr_ros2_driver/src/smartmicro_radar_node.cpp Outdated Show resolved Hide resolved
umrr_ros2_driver/src/smartmicro_radar_node.cpp Outdated Show resolved Hide resolved
@smartSRA
Copy link
Collaborator Author

smartSRA commented Jan 26, 2022

Thought I would run through a review while I was responding to another issue.

@JWhitleyWork Thanks for your review, I will look into it in detail and make the required changes.

@ghost ghost linked an issue Feb 18, 2022 that may be closed by this pull request
@ghost ghost removed a link to an issue Feb 18, 2022
@smartSRA smartSRA mentioned this pull request Apr 22, 2022
smartSRA added 11 commits April 25, 2022 11:06
One simulator which would be used to simulated different sensor types. A new param model introduced which specificies the sesnor to be used. Compose file adopted to run multiple simulators.
Running two services parallel with the same build seem to cause issues and therefore a new service is created. Docker exits as build service exits and does not continue forward hence a timer for port streamer introduced. Readme and actions file adopted respectively
Binaries unpacked only inside the umrr_ros2_driver directory and the simulator adopted to find the binaries. Formatting and grammar checks.
@smartSRA smartSRA changed the title [wip] : Sensor Services Sensor Services Jun 2, 2022
@smartEBL smartEBL requested review from smartBUILDBOT and removed request for smartBUILDBOT June 2, 2022 12:12
@smartBUILDBOT smartBUILDBOT self-requested a review June 2, 2022 12:13
@smartBUILDBOT smartBUILDBOT merged commit 50a719e into smartmicro:develop Jun 2, 2022
ghost pushed a commit that referenced this pull request Jun 2, 2022
Provide ros2 services to change sensor modes and configure the sensor
smartBUILDBOT pushed a commit that referenced this pull request Jun 2, 2022
Provide ros2 services to change sensor modes and configure the sensor
smartBUILDBOT pushed a commit that referenced this pull request Jun 2, 2022
Provide ros2 services to change sensor modes and configure the sensor
@smartSRA smartSRA deleted the sensor-services branch October 11, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants