mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
remove vector normalization- done on base station
This commit is contained in:
@@ -407,13 +407,13 @@ class SerialRelay(Node):
|
|||||||
self.debug_pub.publish(tempMsg)
|
self.debug_pub.publish(tempMsg)
|
||||||
|
|
||||||
# normalize the vector
|
# normalize the vector
|
||||||
input_norm = np.linalg.norm(input_raw) / 2.0
|
#input_norm = np.linalg.norm(input_raw) / 2.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Target position is current position + normalized vector
|
#Target position is current position + normalized vector
|
||||||
target_position = self.arm.get_position() + input_norm
|
target_position = self.arm.get_position() + input_raw
|
||||||
tempMsg.data = "Target Position: " + str(target_position)
|
tempMsg.data = "Target Position: " + str(target_position)
|
||||||
self.debug_pub.publish(tempMsg)
|
self.debug_pub.publish(tempMsg)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user