I am getting the following error:
RLException: Invalid roslaunch XML syntax: mismatched tag: line 3, column 2
The traceback for the exception was written to the log file
I am getting the following error:
RLException: Invalid roslaunch XML syntax: mismatched tag: line 3, column 2
The traceback for the exception was written to the log file
Hello @asghar.arafat ,
This looks like you have a syntax error in your launch file. Can you copy the file contents here?
Dear @albertoezquerro. Thank you for your response.
My launch file is given as under:
The python file simple_topic_publisher.py is given as follows:
#! /usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
rospy.init_node(‘move_robot_node’)
pub = rospy.Publisher(‘/cmd_vel’, Twist, queue_size=1)
rate = rospy.Rate(2)
move = Twist()
move.linear.x = 0.5
move.linear.z = 0.5
while not rospy.is_shutdown():
pub.publish(move)
rate.sleep()
Hello @asghar.arafat ,
I don’t see any launch file in your response, only the Python code.
Dear @albertoezquerro,
My apologies for this. For some unknown reason, the launch file text simply does not appear in the post despite typing. So I am going to attach a screenshot instead.
Hello @asghar.arafat ,
I just tested your launch file and it worked OK for me, so I understand you were able to solve this issue.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.