-
Notifications
You must be signed in to change notification settings - Fork 0
Create an action client/server implementation #4
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
base: color_plugin
Are you sure you want to change the base?
Conversation
Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Fixed publication in sensor plugin
Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments
Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type Add color sensor Applied changes requested Adressed the issues commented Fixed type changed xacro files Modifying the original plugin to detect RGB Added the plugin in the two color sensors from previous PR Adding the files for the sensor plugin Add action messages Addressed some comments and added realistic mesh Addressed requested changes, added comments Change action file Create a controller to follow lines in autorace map Solved color sensor problem, added action server and client Changed actionlib related files Fixing conflicts Added launch file Added comments to the controller
@ernestmc Ready for review! |
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.
I left some comments
self.move_forward() | ||
self.stuck_flag = False |
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.
Can this be replaced by calling solve_stuck()
?
if not self.stuck_flag: | ||
self.stuck_timer = rospy.Time.now() | ||
self.stuck_flag = True | ||
if rospy.Time.now() - self.stuck_timer > rospy.Duration(5, 0) and self.stuck_flag: | ||
self.solve_stuck() |
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.
you are doing the same as above. Looks like it is worth putting all this inside the solve_stuck()
method?
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.
The flag is to record when the robot is not moving forward in a time, it get force to go forward a little bit, are you telling me to do that check in the solve_stuck()
method?
Original PR was merged by mistake and closed, the original link is https://github.com/stevendes/create_autonomy/pull/3
Update
Created an action-client/action server implementation
Addressed all the comments from mentioned PR
How it works
Launch the autorace map from the ca_gazebo package
roslaunch ca_gazebo create_autorace.launch
Launch the robot controller, the action client and the action server from the ca_tools package
roslaunch ca_tools action_launch.launch
The
action_launch.launch
file accepts parameters for the goal, these are:goal_seconds
,goal_pos_x
andgoal_pos_y