Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
larm-astro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Inès EL HADRI
larm-astro
Commits
8714a468
Commit
8714a468
authored
Dec 20, 2023
by
Inès EL HADRI
💤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix remap + python header in scripts files
parent
8ac14e08
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
16 deletions
+13
-16
tuto_reel_move_auto.yaml
tuto_kickoff/launch/tuto_reel_move_auto.yaml
+5
-1
tuto_reel_teleop.yaml
tuto_kickoff/launch/tuto_reel_teleop.yaml
+1
-1
tuto_move
tuto_kickoff/scripts/tuto_move
+6
-13
tuto_scan_echo
tuto_kickoff/scripts/tuto_scan_echo
+1
-1
No files found.
tuto_kickoff/launch/tuto_reel_move_auto.yaml
View file @
8714a468
...
@@ -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
tuto_kickoff/launch/tuto_reel_teleop.yaml
View file @
8714a468
...
@@ -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
'
tuto_kickoff/scripts/tuto_move
View file @
8714a468
#!/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."
)
...
...
tuto_kickoff/scripts/tuto_scan_echo
View file @
8714a468
#!python3
#!
/usr/bin/
python3
import
rclpy
import
rclpy
import
math
import
math
from
rclpy.node
import
Node
from
rclpy.node
import
Node
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment