Commit 8714a468 authored by Inès EL HADRI's avatar Inès EL HADRI 💤

fix remap + python header in scripts files

parent 8ac14e08
...@@ -8,3 +8,7 @@ launch: ...@@ -8,3 +8,7 @@ launch:
exec: "tuto_move" exec: "tuto_move"
name: "tuto_move" name: "tuto_move"
namespace: "tuto_kickoff" namespace: "tuto_kickoff"
remap:
-
from: '/cmd_vel'
to: '/multi/cmd_nav'
\ No newline at end of file
...@@ -10,4 +10,4 @@ launch: ...@@ -10,4 +10,4 @@ launch:
# namespace: "teleop" # namespace: "teleop"
- executable: - executable:
cmd: gnome-terminal --tab -e 'ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap turtle1/cmd_vel:=/cmd_vel' cmd: gnome-terminal --tab -e 'ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap turtle1/cmd_vel:=/multi/cmd_nav'
#!/usr/bin/python3
import rclpy # core ROS2 client python librairie import rclpy # core ROS2 client python librairie
from rclpy.node import Node # To manipulate ROS Nodes from rclpy.node import Node # To manipulate ROS Nodes
...@@ -24,21 +25,13 @@ def main(): ...@@ -24,21 +25,13 @@ def main():
velo.angular.z = 0.5 # radians per second velo.angular.z = 0.5 # radians per second
velocity_publisher.publish(velo) velocity_publisher.publish(velo)
# # At the end, destroy the node explicitly. # At the end, destroy the node explicitly.
# myNode.destroy_node() myNode.destroy_node()
# # and shut the light down.
# rclpy.shutdown()
# print("tuto_move :: STOP.")
# and shut the light down.
rclpy.shutdown()
print("tuto_move :: STOP.")
......
#!python3 #!/usr/bin/python3
import rclpy import rclpy
import math import math
from rclpy.node import Node from rclpy.node import Node
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment