-
Notifications
You must be signed in to change notification settings - Fork 0
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
Final noetic nav version #38
Open
GerardoFJ
wants to merge
12
commits into
main
Choose a base branch
from
Noetic_RPLidar
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
eddee23
Merge pull request #32 from RoBorregos/main
Chapa-1810 91863bf
Integrated feature DImension Saver at map_context.py
Chapa-1810 de9bb9a
working room get service
Chapa-1810 f670f78
Merge pull request #33 from RoBorregos/28-map-dimensions-contextualizer
Chapa-1810 e801fc5
Merge branch 'develop' into 29-pose-room-identifier
Chapa-1810 722019e
Merge pull request #34 from RoBorregos/29-pose-room-identifier
Chapa-1810 8af9bcf
Aggregated transform on roomGetter service
Chapa-1810 800fd1d
contextualized map
Chapa-1810 3ea4fa9
Lidar changed
6c7e3f6
added rplidar and things
GerardoFJ cd963dd
Stable version
GerardoFJ 6b9e136
Edited nav_server
GerardoFJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 @@ | ||
image: map.pgm | ||
resolution: 0.050000 | ||
origin: [-10.000000, -10.000000, 0.000000] | ||
negate: 0 | ||
occupied_thresh: 0.65 | ||
free_thresh: 0.196 | ||
|
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
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,54 @@ | ||
#!/usr/bin/python3 | ||
|
||
import rospy | ||
from frida_navigation_interfaces.srv import CreateGoal | ||
from geometry_msgs.msg import PoseStamped | ||
|
||
|
||
class GoalCreator: | ||
def __init__(self) -> None: | ||
self.goal_creator_service = rospy.ServiceProxy( | ||
"/create_goal", CreateGoal | ||
) | ||
self.goal_creator_service.wait_for_service() | ||
|
||
self.og_pub = rospy.Publisher("/og_goal", PoseStamped, queue_size=10) | ||
self.pub = rospy.Publisher("/test_goal", PoseStamped, queue_size=10) | ||
|
||
rospy.loginfo("Goal Creator Service is ready") | ||
|
||
# Receive target pose and offset to goal | ||
def call_service(self): | ||
target = PoseStamped() | ||
target.header.frame_id = "laser_frame" | ||
target.pose.position.x = 0.0 | ||
target.pose.position.y = 0.0 | ||
target.pose.position.z = 0.0 | ||
target.pose.orientation.x = 0.0 | ||
target.pose.orientation.y = 0.0 | ||
target.pose.orientation.z = 0.0 | ||
target.pose.orientation.w = 1.0 | ||
|
||
self.og_pub.publish(target) | ||
|
||
x_offset = 1.0 | ||
y_offset = 0.0 | ||
|
||
try: | ||
response = self.goal_creator_service(target, x_offset, y_offset) | ||
print(response) | ||
except rospy.ServiceException as e: | ||
print(f"Service call failed: {e}") | ||
return | ||
|
||
self.pub.publish(response.goal) | ||
|
||
if __name__ == "__main__": | ||
rospy.init_node("goal_caller", anonymous=False) | ||
goalCreator = GoalCreator() | ||
|
||
while not rospy.is_shutdown(): | ||
goalCreator.call_service() | ||
rospy.sleep(1) | ||
|
||
|
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 @@ | ||
#! /usr/bin/env python3 | ||
|
||
import rospy | ||
from geometry_msgs.msg import PointStamped | ||
from frida_navigation_interfaces.srv import RoomGetter | ||
|
||
|
||
def main(): | ||
rospy.init_node("room_getter_client") | ||
rospy.loginfo("Room Getter client is ready") | ||
rospy.wait_for_service('room_getter') | ||
try: | ||
room_getter = rospy.ServiceProxy('room_getter', RoomGetter) | ||
goal = PointStamped() | ||
x= -6.475536823272705 | ||
y= 4.268789291381836 | ||
z= 0.0057659149169921875 | ||
goal.point.x = x | ||
goal.point.y = y | ||
goal.point.z = 0 | ||
goal.header.frame_id = "map" | ||
resp1 = room_getter(goal) | ||
print(f"Room: {resp1.room}") | ||
except rospy.ServiceException as e: | ||
print("Service call failed: %s"%e) | ||
rospy.spin() | ||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Remove this lines. Avoid this type of approach