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

Add Ranking Controller node #80

Merged
merged 9 commits into from
Aug 30, 2019
Merged

Conversation

eborghi10
Copy link
Member

@eborghi10 eborghi10 commented Jun 17, 2019

Related to issue #86.

This PR adds a node that moves the robot (sends cmd_vel commands) based on bumper readings (bumper topic).

Instructions to execute this:

Option 1

$ roslaunch ca_gazebo create_stage_1.launch

$ rosrun ca_node ranking_controller.py

Option 2

$ roslaunch ca_gazebo create_stage_1.launch

$ rosrun ca_node smach_ranking_controller.py

$ rosrun smach_viewer smach_viewer.py

If you want to increase the real-time update rate:

$ gz physics -u 2000

To do list:

  • The robot suddenly stops.
  • Use smach for the state machine.
  • Fix indentation in CMakeLists.txt.
  • Install dependecies (smach, smach_ros and smach_viewer)
  • Bumps are not being detected correctly with RTF > 1x.

@eborghi10 eborghi10 added this to the Control milestone Jun 17, 2019
@eborghi10 eborghi10 changed the title [WIP] Add Ranking Controller node Add Ranking Controller node Jun 22, 2019
@eborghi10 eborghi10 force-pushed the eborghi/ranking_controller branch from b7f499e to 53ef95b Compare July 9, 2019 03:46
@eborghi10 eborghi10 force-pushed the eborghi/ranking_controller branch from acd4c96 to 0c909d5 Compare August 30, 2019 20:46
@eborghi10 eborghi10 requested a review from ernestmc August 30, 2019 22:00
@eborghi10
Copy link
Member Author

@ernestmc I fixed the controller node. There was an issue with the bumper detection (I had to wrap an angle).

Now it's working so I'm gonna merge it!

@eborghi10 eborghi10 force-pushed the eborghi/ranking_controller branch from 1167a92 to 316caf5 Compare August 30, 2019 22:05
@eborghi10 eborghi10 merged commit d124df2 into kinetic-devel Aug 30, 2019
@delete-merged-branch delete-merged-branch bot deleted the eborghi/ranking_controller branch August 30, 2019 22:06
eborghi10 added a commit that referenced this pull request Feb 2, 2020
* Add ranking_controller

* Implement duration field

* Add friction to stage worlds

* Add ranking controller using smach

* Fix state machine

* Fix indentation and add smach_viewer as dependency

* Add angle normalization method

* Fix bumper detection - Added angle normalization

* Add dependencies


Former-commit-id: bc380d935e51476ffd9b41dbfe3f84593daf4925 [formerly d124df2]
Former-commit-id: ca1a63556caa139fa00d2c702a044bd395f8fe60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant