-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from sonia-auv/develop
Develop
- Loading branch information
Showing
15 changed files
with
62 additions
and
76 deletions.
There are no files selected for viewing
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,2 @@ | ||
build | ||
devel |
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,28 +1,31 @@ | ||
#!/usr/bin/env python | ||
__author__ = 'jeremie' | ||
__author__ = "jeremie" | ||
|
||
from sonia_msgs.msg import BottomTracking | ||
from sonia_common.msg import BottomTracking | ||
import rospy | ||
|
||
|
||
def callback(data): | ||
velocities = list(data.velocity) | ||
vx = "{:10.4f}".format(float(velocities[0])) | ||
vy = "{:10.4f}".format(float(data.velocity[1])) | ||
vz = "{:10.4f}".format(float(data.velocity[2])) | ||
print "Velocity:\tNorth : " + vx + "\tEast : " + vy + "\tDown : " + vz + "\r", | ||
|
||
print "Velocity:\tNorth : " + vx + "\tEast : " + vy + "\tDown : " + vz + "\r", | ||
|
||
|
||
def listener(): | ||
# In ROS, nodes are uniquely named. If two nodes with the same | ||
# node are launched, the previous one is kicked off. The | ||
# anonymous=True flag means that rospy will choose a unique | ||
# name for our 'listener' node so that multiple listeners can | ||
# run simultaneously. | ||
rospy.init_node('velocity_pretty_print', anonymous=True) | ||
rospy.init_node("velocity_pretty_print", anonymous=True) | ||
|
||
rospy.Subscriber("/provider_dvl/bottom_tracking", BottomTracking, callback) | ||
|
||
# spin() simply keeps python from exiting until this node is stopped | ||
rospy.spin() | ||
|
||
if __name__ == '__main__': | ||
|
||
if __name__ == "__main__": | ||
listener() |
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