Hiep sua file

This commit is contained in:
2025-12-29 17:42:32 +07:00
parent a28f05c6d5
commit ed54b7b8db
4 changed files with 40 additions and 14 deletions

View File

@@ -55,18 +55,18 @@
#include <robot/node_handle.h>
#include <robot/plugin_loader_helper.h>
class SuperValue : public XmlRpc::XmlRpcValue
class SuperValue : public robot::XmlRpc::XmlRpcValue
{
public:
void setStruct(XmlRpc::XmlRpcValue::ValueStruct* a)
void setStruct(robot::XmlRpc::XmlRpcValue::ValueStruct* a)
{
_type = TypeStruct;
_value.asStruct = new XmlRpc::XmlRpcValue::ValueStruct(*a);
_value.asStruct = new robot::XmlRpc::XmlRpcValue::ValueStruct(*a);
}
void setArray(XmlRpc::XmlRpcValue::ValueArray* a)
void setArray(robot::XmlRpc::XmlRpcValue::ValueArray* a)
{
_type = TypeArray;
_value.asArray = new std::vector<XmlRpc::XmlRpcValue>(*a);
_value.asArray = new std::vector<robot::XmlRpc::XmlRpcValue>(*a);
}
};

View File

@@ -136,7 +136,7 @@ std::vector<geometry_msgs::Point> makeFootprintFromParams(robot::NodeHandle& nh)
* @param full_param_name this is the full name of the rosparam from
* which the footprint_xmlrpc value came. It is used only for
* reporting errors. */
std::vector<geometry_msgs::Point> makeFootprintFromXMLRPC(XmlRpc::XmlRpcValue& footprint_xmlrpc,
std::vector<geometry_msgs::Point> makeFootprintFromXMLRPC(robot::XmlRpc::XmlRpcValue& footprint_xmlrpc,
const std::string& full_param_name);
// /** @brief Write the current unpadded_footprint_ to the "footprint"