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

fix remap + python header in scripts files

parent 8ac14e08
......@@ -7,4 +7,8 @@ launch:
pkg: "tuto_kickoff"
exec: "tuto_move"
name: "tuto_move"
namespace: "tuto_kickoff"
\ No newline at end of file
namespace: "tuto_kickoff"
remap:
-
from: '/cmd_vel'
to: '/multi/cmd_nav'
\ No newline at end of file
......@@ -10,4 +10,4 @@ launch:
# namespace: "teleop"
- 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
from rclpy.node import Node # To manipulate ROS Nodes
......@@ -24,21 +25,13 @@ def main():
velo.angular.z = 0.5 # radians per second
velocity_publisher.publish(velo)
# # At the end, destroy the node explicitly.
# myNode.destroy_node()
# # and shut the light down.
# rclpy.shutdown()
# print("tuto_move :: STOP.")
# At the end, destroy the node explicitly.
myNode.destroy_node()
# and shut the light down.
rclpy.shutdown()
print("tuto_move :: STOP.")
......
#!python3
#!/usr/bin/python3
import rclpy
import math
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