execute ros functions inside a python file
im trying to pub a nav2_goal under a pyhon file inside if statement
how i can publish that.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
im trying to pub a nav2_goal under a pyhon file inside if statement
how i can publish that.
Asked: 2022-08-07 17:23:53 -0500
Seen: 50 times
Last updated: Aug 07 '22
Drift occurs when the robot turns( scan data ).
How to call a service from XML launch file?
How to create proper launch file in ros2 xml and python
Unable to open turtlesim in Windows 11
How to fix catkin Depends error..? ROS2 galactic
How to substitute Keepout with SpeedLimits in nav2
Path planned through unmapped region for goal present inside map.
I strongly recommend mentioning your code to understand the problem better.
i have this code when the camera detect a person i need to publish a nav2_goal
this is my goal that i need to publish
ros2 topic pub /goal_pose geometry_msgs/PoseStamped "{header: {stamp: {sec: 0}, frame_id: 'map'}, pose: {position: {x: 5.0, y: -2.0, z: 0.0}, orientation: {w: 1.0}}}"
Two things. 1) Please format your code properly and then move it from comment section to question. 2) "i need to publish", please look at the ROS tutorial page titled "Writing a Simple Publisher and Subscriber (Python)". It is beautifully written with complete explanation.
Thanks alot Ravi <3