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
d571a82e
Commit
d571a82e
authored
Dec 19, 2023
by
Inès EL HADRI
💤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change script to work with sim
parent
ca89c6c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tuto_move.py
tuto_move.py
+6
-6
No files found.
tuto_move.py
View file @
d571a82e
...
...
@@ -10,7 +10,7 @@ def main():
myNode
=
Node
(
'move_node'
)
# Create a Node, with a name
# Initialize a publisher:
velocity_publisher
=
myNode
.
create_publisher
(
Twist
,
'/
multi/cmd_nav
'
,
10
)
velocity_publisher
=
myNode
.
create_publisher
(
Twist
,
'/
cmd_vel
'
,
10
)
# Start the ros infinit loop with myNode.
...
...
@@ -24,13 +24,13 @@ def main():
velo
.
angular
.
z
=
0.5
# radians per second
velocity_publisher
.
publish
(
velo
)
# At the end, destroy the node explicitly.
mov
e
.
destroy_node
()
#
#
At the end, destroy the node explicitly.
# myNod
e.destroy_node()
# and shut the light down.
rclpy
.
shutdown
()
#
#
and shut the light down.
#
rclpy.shutdown()
print
(
"tuto_move :: STOP."
)
#
print("tuto_move :: STOP.")
...
...
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